Module is.codion.swing.common.model
Interface SwingFilterListModel<T>
- Type Parameters:
T- the item type
- All Superinterfaces:
FilterListModel<T>,FilterModel<T>,ListModel<T>
A Swing
ListModel based on the UI-agnostic
FilterListModel, adding the ListModel
interface — mirroring how SwingTableModel extends TableModel. The rich model logic
(items, selection, filtering, sorting) lives in the common module; this only adds the Swing coat,
with selection() narrowed to a FilterListSelection (a javax.swing.ListSelectionModel).- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds aSwingFilterListModel, theFilterListModel.Builderoptions with the selection based on ajavax.swing.ListSelectionModel.Nested classes/interfaces inherited from interface is.codion.common.model.filter.FilterModel
FilterModel.ExcludedItems<T>, FilterModel.IncludedItems<T>, FilterModel.IncludePredicate<T>, FilterModel.Items<T>, FilterModel.Refresher<T>, FilterModel.Sort<T> -
Field Summary
Fields inherited from interface is.codion.common.model.filter.FilterModel
ASYNC, REFRESH_DELAY -
Method Summary
Methods inherited from interface is.codion.common.model.component.list.FilterListModel
sortMethods inherited from interface is.codion.common.model.filter.FilterModel
itemsMethods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
-
Method Details
-
selection
FilterListSelection<T> selection()- Specified by:
selectionin interfaceFilterListModel<T>- Specified by:
selectionin interfaceFilterModel<T>- Returns:
- the
SingleSelectioninstance used by this model
-
builder
- Returns:
- a
SwingFilterListModel.Builder.ItemsStepinstance
-