Package jaxx.runtime.swing.list
Interface CheckListModel<T>
-
- All Superinterfaces:
ListModel
- All Known Subinterfaces:
FilterableCheckListModel<T>
- All Known Implementing Classes:
ActionCheckListModel,DefaultCheckListModel,DefaultFilterableCheckListModel,FilterableActionCheckListModel
public interface CheckListModel<T> extends ListModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<T>getCheckedItems()Returns a collections of checked itemsintgetOriginalSize()Returns the number of items before the filter was appliedbooleanisCheckedIndex(int index)Returns the check state of the element at specified positionvoidsetCheckedIndex(int index, boolean value)Sets the check state of the element at specified positionvoidsetCheckedItems(Collection<T> items)Sets checked items-
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
-
-
-
-
Method Detail
-
isCheckedIndex
boolean isCheckedIndex(int index)
Returns the check state of the element at specified position- Parameters:
index- element index- Returns:
- true if element at specified position is checked
- Throws:
IndexOutOfBoundsException- if index is out of range
-
setCheckedIndex
void setCheckedIndex(int index, boolean value)Sets the check state of the element at specified position- Parameters:
index- element indexvalue-- Throws:
IndexOutOfBoundsException- if index is out of range
-
getCheckedItems
Collection<T> getCheckedItems()
Returns a collections of checked items- Returns:
-
setCheckedItems
void setCheckedItems(Collection<T> items)
Sets checked items- Parameters:
items-
-
getOriginalSize
int getOriginalSize()
Returns the number of items before the filter was applied- Returns:
-
-