public static class AbstractTreeModel.DefaultSelectionControl<E> extends 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 |
|---|
AbstractTreeModel.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 AbstractTreeModel.DefaultSelectionControl(AbstractTreeModel model)
public boolean isSelectable(E e)
SelectionControlisSelectable in interface SelectionControl<E>public void setSelectAll(boolean selectAll)
SelectionControlsetSelectAll in interface SelectionControl<E>public boolean isSelectAll()
SelectionControlisSelectAll in interface SelectionControl<E>Copyright © 2015. All rights reserved.