Class DefaultTreeSelectionControlEx<E>

  • All Implemented Interfaces:
    java.io.Serializable, org.zkoss.zul.ext.SelectionControl<E>

    public class DefaultTreeSelectionControlEx<E>
    extends java.lang.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:
    AbstractTreeModel.setSelectionControl(SelectionControl), Serialized Form
    • Constructor Detail

      • DefaultTreeSelectionControlEx

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

      • 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 java.util.List<E> getAllNodes()
      • isSelectAll

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

        protected java.util.List<E> getChildrenNodes​(E parent)