Package docking.widgets.searchlist
Interface SearchListModel<T>
- Type Parameters:
T
- the type of data items in the search list
- All Superinterfaces:
ListModel<SearchListEntry<T>>
- All Known Implementing Classes:
ActionsModel
,DefaultSearchListModel
Interface for the model for
SearchList
. It is an extension of a JList's model to add
the ability to group items into categories.-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Clean up any resources held by the modelReturns the list of categories in the order they were added to the modelvoid
setFilter
(BiPredicate<T, String> filter) Sets the filter for the model data to display.Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
-
Method Details
-
getCategories
Returns the list of categories in the order they were added to the model- Returns:
- the list of categories in the order they were added to the model
-
setFilter
Sets the filter for the model data to display.- Parameters:
filter
- the BiPredicate for the model data to display which will filter based on the item and its category
-
dispose
void dispose()Clean up any resources held by the model
-