Package jaxx.runtime.swing.list
Interface CheckListModel<T>
- All Superinterfaces:
javax.swing.ListModel
- All Known Subinterfaces:
FilterableCheckListModel<T>
- All Known Implementing Classes:
ActionCheckListModel,DefaultCheckListModel,DefaultFilterableCheckListModel,FilterableActionCheckListModel
public interface CheckListModel<T>
extends javax.swing.ListModel
-
Method Summary
Modifier and Type Method Description java.util.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(java.util.Collection<T> items)Sets checked itemsMethods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
-
Method Details
-
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:
java.lang.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:
java.lang.IndexOutOfBoundsException- if index is out of range
-
getCheckedItems
java.util.Collection<T> getCheckedItems()Returns a collections of checked items- Returns:
-
setCheckedItems
Sets checked items- Parameters:
items-
-
getOriginalSize
int getOriginalSize()Returns the number of items before the filter was applied- Returns:
-