Package org.zkoss.zkmax.zul.impl
Class DefaultTreeSelectionControlEx<E>
java.lang.Object
org.zkoss.zkmax.zul.impl.DefaultTreeSelectionControlEx<E>
- All Implemented Interfaces:
Serializable,SelectionControl<E>
An extension of
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.
- Since:
- 9.6.0
- Author:
- leon
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChildrenNodes(E parent) booleanisSelectable(E e) Returns whether the element can be selected.booleanReturns whether it's all elements selectedvoidsetSelectAll(boolean selectAll) Sets to select all elements or deselect all elements.
-
Constructor Details
-
DefaultTreeSelectionControlEx
-
-
Method Details
-
isSelectable
Description copied from interface:SelectionControlReturns whether the element can be selected.- Specified by:
isSelectablein interfaceSelectionControl<E>
-
setSelectAll
public void setSelectAll(boolean selectAll) Description copied from interface:SelectionControlSets to select all elements or deselect all elements.- Specified by:
setSelectAllin interfaceSelectionControl<E>
-
getAllNodes
-
isSelectAll
public boolean isSelectAll()Description copied from interface:SelectionControlReturns whether it's all elements selected- Specified by:
isSelectAllin interfaceSelectionControl<E>
-
getChildrenNodes
-