Interface ITreechildren

    • Field Detail

      • DEFAULT

        static final ITreechildren DEFAULT
        Constant for default attributes of this immutable component.
    • Method Detail

      • getWidgetClass

        default java.lang.String getWidgetClass()
        Returns the client widget class.

        Default: "zul.sel.Treechildren"

        Specified by:
        getWidgetClass in interface IComponent<ITreechildren>
      • getItemCount

        @Lazy
        default int getItemCount()
        Returns the number of child ITreeitem including all descendants. The same as getItems().size().

        Note: the performance is no good.

      • getItems

        @Lazy
        default java.util.Collection<ITreeitem> getItems()
        Returns a readonly list of all descending ITreeitem (children's children and so on).

        Note: the performance of the size method of returned collection is no good.

      • of

        static ITreechildren of​(java.lang.Iterable<? extends ITreeitem> children)
        Returns the instance with the given tree items which belong to this component.
        Parameters:
        children - The tree items of the component.
      • of

        static ITreechildren of​(ITreeitem... children)
        Returns the instance with the given tree items which belong to this component.
        Parameters:
        children - The tree items of the component.