Interface ITreecell<I extends IAnyGroup>

    • Field Detail

      • DEFAULT

        static final ITreecell<IAnyGroup> 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.Treecell"

        Specified by:
        getWidgetClass in interface IComponent<I extends IAnyGroup>
      • getWidth

        @Derived
        @Nullable
        default java.lang.String getWidth()
        Description copied from interface: IHtmlBasedComponent
        Returns the width of the component. If not specified, null is assumed.

        Default: null

        Specified by:
        getWidth in interface IHtmlBasedComponent<I extends IAnyGroup>
      • withWidth

        default ITreecell<I> withWidth​(@Nullable
                                       java.lang.String width)
        To control the size of Treecell related components, please refer to ITree and ITreecol instead.
        Specified by:
        withWidth in interface IHtmlBasedComponent<I extends IAnyGroup>
        Parameters:
        width - The width of the component.

        Default: null

        Returns:
        A modified copy of the this object
      • withHflex

        default ITreecell<I> withHflex​(@Nullable
                                       java.lang.String hflex)
        To control the size of Treecell related components, please refer to ITree and ITreecol instead.
        Specified by:
        withHflex in interface IHtmlBasedComponent<I extends IAnyGroup>
        Parameters:
        hflex - The horizontal flex hint.

        Default: null

        Returns:
        A modified copy of the this object
      • getSpan

        default int getSpan()
        Returns number of columns to span this cell.

        Default: 1.

      • withSpan

        ITreecell<I> withSpan​(int span)
        Returns a copy of this immutable component with the specified span.

        Sets the number of columns to span this cell. It is the same as the colspan attribute of HTML TD tag.

        Parameters:
        span - The number of columns to span this cell.

        Default: 1.

        Returns:
        A modified copy of the this object
      • of

        static <I extends IAnyGroupITreecell<I> of​(java.lang.String label)
        Returns the instance with the given label.
        Parameters:
        label - The label that the cell holds.
      • of

        static <I extends IAnyGroupITreecell<I> of​(java.lang.String label,
                                                     java.lang.String image)
        Returns the instance with the given label and image.
        Parameters:
        label - The label that the cell holds.
        image - The image that the cell holds.
      • ofId

        static <I extends IAnyGroupITreecell<I> ofId​(java.lang.String id)
        Returns the instance with the given id.
        Parameters:
        id - The id to identify this component
      • ofImage

        static <I extends IAnyGroupITreecell<I> ofImage​(java.lang.String image)
        Returns the instance with the given image.
        Parameters:
        image - The image that the cell holds.
      • of

        static <I extends IAnyGroupITreecell<I> of​(java.lang.Iterable<? extends I> children)
        Returns the instance with the given any group children.
        Parameters:
        children - The children belong to any group
        See Also:
        IAnyGroup
      • of

        static <I extends IAnyGroupITreecell<I> of​(I... children)
        Returns the instance with the given any group children.
        Parameters:
        children - The children belong to any group
        See Also:
        IAnyGroup