com.jidesoft.list
Class GroupListShrinkSearchableSupport
java.lang.Object
com.jidesoft.grid.ShrinkSearchableSupport
com.jidesoft.grid.ListShrinkSearchableSupport
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupListShrinkSearchableSupport
public GroupListShrinkSearchableSupport(Searchable searchable)
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