public class DefaultTreeSelectionControlEx<E> extends java.lang.Object implements SelectionControl<E>
AbstractTreeModel.DefaultSelectionControl,
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.
AbstractTreeModel.setSelectionControl(SelectionControl),
Serialized Form| Constructor and Description |
|---|
DefaultTreeSelectionControlEx(AbstractTreeModel<E> model) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<E> |
getAllNodes() |
protected java.util.List<E> |
getChildrenNodes(E parent) |
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 DefaultTreeSelectionControlEx(AbstractTreeModel<E> model)
public boolean isSelectable(E e)
SelectionControlisSelectable in interface SelectionControl<E>public void setSelectAll(boolean selectAll)
SelectionControlsetSelectAll in interface SelectionControl<E>protected java.util.List<E> getAllNodes()
public boolean isSelectAll()
SelectionControlisSelectAll in interface SelectionControl<E>Copyright © 2005-2024 Potix Corporation. All Rights Reserved.