public static class AbstractTreeModel.DefaultSelectionControl<E> extends java.lang.Object implements SelectionControl<E>
AbstractTreeModel
,
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 |
---|
DefaultSelectionControl(AbstractTreeModel 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 DefaultSelectionControl(AbstractTreeModel 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-2018 Potix Corporation. All Rights Reserved.