public static class AbstractGroupsModel.DefaultSelectionControl<E> extends java.lang.Object implements SelectionControl<E>
AbstractGroupsModel
,
by default it assumes all elements are selectable.
Note: the implementation is not used for a huge data model, if in this case, please implement your own one to speed up.
Constructor and Description |
---|
AbstractGroupsModel.DefaultSelectionControl(AbstractGroupsModel model) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSelectable(E e)
Returns whether the element can be selected.
|
boolean |
isSelectAll()
Returns whether it's all elements selected
|
void |
setSelectAll(boolean selectAll)
Sets to select all elements or deselect all elements.
|
public AbstractGroupsModel.DefaultSelectionControl(AbstractGroupsModel model)
public boolean isSelectable(E e)
SelectionControl
isSelectable
in interface SelectionControl<E>
public void setSelectAll(boolean selectAll)
SelectionControl
setSelectAll
in interface SelectionControl<E>
public boolean isSelectAll()
SelectionControl
isSelectAll
in interface SelectionControl<E>
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.