Interface ITreechildren

All Superinterfaces:
IChildable<ITreechildren,ITreeitem>, IComponent<ITreechildren>, IHtmlBasedComponent<ITreechildren>, IMeshComposite<ITreechildren>, ITreeComposite<ITreechildren>, ITreeitemComposite<ITreechildren>, IXulElement<ITreechildren>

Immutable Treechildren component
Author:
jumperchen
See Also:
  • Treechildren
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default 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 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(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.