Package org.zkoss.zkmax.zul.impl
Class DefaultTreeSelectionControlEx<E>
- java.lang.Object
-
- org.zkoss.zkmax.zul.impl.DefaultTreeSelectionControlEx<E>
-
- All Implemented Interfaces:
java.io.Serializable
,SelectionControl<E>
public class DefaultTreeSelectionControlEx<E> extends java.lang.Object implements SelectionControl<E>
An extension ofAbstractTreeModel.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:
AbstractTreeModel.setSelectionControl(SelectionControl)
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultTreeSelectionControlEx(AbstractTreeModel<E> model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 selectedvoid
setSelectAll(boolean selectAll)
Sets to select all elements or deselect all elements.
-
-
-
Constructor Detail
-
DefaultTreeSelectionControlEx
public DefaultTreeSelectionControlEx(AbstractTreeModel<E> model)
-
-
Method Detail
-
isSelectable
public boolean isSelectable(E e)
Description copied from interface:SelectionControl
Returns whether the element can be selected.- Specified by:
isSelectable
in interfaceSelectionControl<E>
-
setSelectAll
public void setSelectAll(boolean selectAll)
Description copied from interface:SelectionControl
Sets to select all elements or deselect all elements.- Specified by:
setSelectAll
in interfaceSelectionControl<E>
-
getAllNodes
protected java.util.List<E> getAllNodes()
-
isSelectAll
public boolean isSelectAll()
Description copied from interface:SelectionControl
Returns whether it's all elements selected- Specified by:
isSelectAll
in interfaceSelectionControl<E>
-
-