Class DefaultTreeSelectionControlEx<E>

java.lang.Object
org.zkoss.zkmax.zul.impl.DefaultTreeSelectionControlEx<E>
All Implemented Interfaces:
Serializable, org.zkoss.zul.ext.SelectionControl<E>

public class DefaultTreeSelectionControlEx<E> extends Object implements org.zkoss.zul.ext.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 Details

    • DefaultTreeSelectionControlEx

      public DefaultTreeSelectionControlEx(org.zkoss.zul.AbstractTreeModel<E> model)
  • Method Details

    • isSelectable

      public boolean isSelectable(E e)
      Specified by:
      isSelectable in interface org.zkoss.zul.ext.SelectionControl<E>
    • setSelectAll

      public void setSelectAll(boolean selectAll)
      Specified by:
      setSelectAll in interface org.zkoss.zul.ext.SelectionControl<E>
    • getAllNodes

      protected List<E> getAllNodes()
    • isSelectAll

      public boolean isSelectAll()
      Specified by:
      isSelectAll in interface org.zkoss.zul.ext.SelectionControl<E>
    • getChildrenNodes

      protected List<E> getChildrenNodes(E parent)