Interface ITreerow

    • Field Detail

      • DEFAULT

        static final ITreerow 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.Treerow"

        Specified by:
        getWidgetClass in interface IComponent<ITreerow>
      • getImage

        @Nullable
        default java.lang.String getImage()
        Returns the image of the first ITreecell it contains, or null if no such treecell.
      • withImage

        ITreerow withImage​(@Nullable
                           java.lang.String image)
        Returns a copy of this immutable component with the specified image.

        Sets the image of the first ITreecell it contains.

        Note: if no any treecell exists, this method creates one automatically.

        Parameters:
        image - The image of the first ITreecell it contains.

        Default: null.

        Returns:
        A modified copy of the this object
      • getLabel

        @Nullable
        default java.lang.String getLabel()
        Returns the label of the first ITreecell it contains, or null if no such treecell.
      • withLabel

        ITreerow withLabel​(@Nullable
                           java.lang.String label)
        Returns a copy of this immutable component with the specified label.

        Sets the label of the first ITreecell it contains.

        Note: if no any treecell exists, this method creates one automatically.

        Parameters:
        label - The label of the first ITreecell it contains.

        Default: null.

        Returns:
        A modified copy of the this object
      • of

        static ITreerow of​(java.lang.String label)
        Returns the instance with a ITreecell holding the given label.
        Parameters:
        label - The label of the first ITreecell
      • of

        static ITreerow of​(java.lang.String label,
                           java.lang.String image)
        Returns the instance with a ITreecell holding the given label and image.
        Parameters:
        label - The label of the first ITreecell
        image - The image of the first ITreecell
      • of

        static ITreerow of​(java.lang.Iterable<? extends ITreecell<IAnyGroup>> children)
        Returns the instance with the given treecells.
        Parameters:
        children - The tree cells of the component
      • ofImage

        static ITreerow ofImage​(java.lang.String image)
        Returns the instance with a ITreecell holding the given image.
        Parameters:
        image - The image of the first ITreecell