public static class AbstractListModel.DefaultSelectionControl<E> extends java.lang.Object implements SelectionControl<E>
AbstractListModel
,
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 |
---|
AbstractListModel.DefaultSelectionControl(AbstractListModel 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 AbstractListModel.DefaultSelectionControl(AbstractListModel 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.