public class CheckBoxListModel extends WebListModel<CheckBoxCellData>
delegate| Constructor and Description |
|---|
CheckBoxListModel()
Constructs checkbox list model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCheckBoxElement(java.lang.Object userObject)
Adds new checkbox cell data with a specified user object into list model.
|
void |
addCheckBoxElement(java.lang.Object userObject,
boolean selected)
Adds new checkbox cell data with a specified user object and checkbox selection state into list model.
|
void |
addCheckBoxElementAt(int index,
java.lang.Object userObject)
Adds new checkbox cell data with a specified user object into list model at the specified index.
|
void |
addCheckBoxElementAt(int index,
java.lang.Object userObject,
boolean selected)
Adds new checkbox cell data with a specified user object and checkbox selection state into list model at the specified index.
|
java.util.List<java.lang.Object> |
getCheckedValues()
Returns list of values from checked cells.
|
void |
invertCheckBoxSelection(int index)
Inverts checkbox selection at the specified cell index.
|
boolean |
isCheckBoxSelected(int index)
Returns whether checkbox under the specified cell index is selected or not.
|
boolean |
setCheckBoxSelected(int index,
boolean selected)
Sets whether checkbox at the specified cell index is selected or not and returns whether selection has changed or not.
|
add, add, addElement, addElements, addElements, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, firstElement, get, getElementAt, getElements, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAllAfter, removeAllBefore, removeAllElements, removeElement, removeElementAt, removeElements, removeElements, removeRange, set, setElementAt, setElements, setSize, size, toArray, toString, trimToSize, updatepublic void addCheckBoxElement(java.lang.Object userObject)
userObject - user objectpublic void addCheckBoxElement(java.lang.Object userObject,
boolean selected)
userObject - user objectselected - whether checkbox selected or notpublic void addCheckBoxElementAt(int index,
java.lang.Object userObject)
index - new cell indexuserObject - user objectpublic void addCheckBoxElementAt(int index,
java.lang.Object userObject,
boolean selected)
index - new cell indexuserObject - user objectselected - whether checkbox selected or notpublic boolean isCheckBoxSelected(int index)
index - cell indexpublic java.util.List<java.lang.Object> getCheckedValues()
public void invertCheckBoxSelection(int index)
index - cell indexpublic boolean setCheckBoxSelected(int index,
boolean selected)
index - cell indexselected - whether checkbox is selected or not