JIDE 3.5.15

com.jidesoft.list
Class GroupListShrinkSearchableSupport

java.lang.Object
  extended by com.jidesoft.grid.ShrinkSearchableSupport
      extended by com.jidesoft.grid.ListShrinkSearchableSupport
          extended by com.jidesoft.list.GroupListShrinkSearchableSupport
All Implemented Interfaces:
SearchableListener, PropertyChangeListener, EventListener

public class GroupListShrinkSearchableSupport
extends ListShrinkSearchableSupport

GroupListShrinkSearchableSupport is a subclass of ShrinkSearchableSupport to make GroupList shrinkable while searching.


Field Summary
 
Fields inherited from class com.jidesoft.grid.ListShrinkSearchableSupport
_filterableListModel
 
Fields inherited from class com.jidesoft.grid.ShrinkSearchableSupport
_searchable, CLIENT_PROPERTY_SHRINK_SEARCHABLE_SUPPORT
 
Constructor Summary
GroupListShrinkSearchableSupport(Searchable searchable)
           
 
Method Summary
protected  int getActualIndexAt(int viewIndex)
          Get actual index from the visual index.
protected  int getVisualIndexAt(int actualIndex)
          Get visual index from the actual index.
 void installFilterableModel()
          Install a filterable model for the component where Searchable installed in.
 void uninstallFilterableModel()
          Uninstall the filterable model installed by installFilterableModel.
 
Methods inherited from class com.jidesoft.grid.ListShrinkSearchableSupport
applyFilter, needReinstallFilterableModel
 
Methods inherited from class com.jidesoft.grid.ShrinkSearchableSupport
convertElementToString, propertyChange, searchableEventFired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupListShrinkSearchableSupport

public GroupListShrinkSearchableSupport(Searchable searchable)
Method Detail

installFilterableModel

public void installFilterableModel()
Description copied from class: ShrinkSearchableSupport
Install a filterable model for the component where Searchable installed in.

Overrides:
installFilterableModel in class ListShrinkSearchableSupport

uninstallFilterableModel

public void uninstallFilterableModel()
Description copied from class: ShrinkSearchableSupport
Uninstall the filterable model installed by installFilterableModel.

If you are extending this class to create your customized ShrinkSearchableSupport class, please make sure you will invoke _searchable.getComponent().removePropertyChangeListener("model", this); to remove the property change listener. Otherwise the filterable model may not be removed.

Overrides:
uninstallFilterableModel in class ListShrinkSearchableSupport

getActualIndexAt

protected int getActualIndexAt(int viewIndex)
Description copied from class: ShrinkSearchableSupport
Get actual index from the visual index. This method will be invoked before we invoke applyFilter so that we can get the current selection information hence we are able to set the selection back after the filter is applied.

Overrides:
getActualIndexAt in class ListShrinkSearchableSupport
Parameters:
viewIndex - the visual index
Returns:
the actual index

getVisualIndexAt

protected int getVisualIndexAt(int actualIndex)
Description copied from class: ShrinkSearchableSupport
Get visual index from the actual index. This method will be invoked after we invoke applyFilter so that we can set the selection back.

Overrides:
getVisualIndexAt in class ListShrinkSearchableSupport
Parameters:
actualIndex - the actual index
Returns:
the visual index

JIDE 3.5.15