Interface ICell<I extends IAnyGroup>

    • Field Detail

      • DEFAULT

        static final ICell<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.wgt.Cell"

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

        @Nullable
        java.lang.String getAlign()
        Returns the horizontal alignment.

        Default: null (system default: left unless CSS specified).

      • withAlign

        ICell<I> withAlign​(@Nullable
                           java.lang.String align)
        Returns a copy of this immutable component with the specified align.

        Sets the horizontal alignment. Allowed values: "left", "right, "center", "justify", and "char".

        Parameters:
        align - the horizontal alignment.

        Default: null.

        Returns:
        A modified copy of the this object
      • getValign

        @Nullable
        java.lang.String getValign()
        Returns the vertical alignment.

        Default: null (system default: top).

      • withValign

        ICell<I> withValign​(@Nullable
                            java.lang.String valign)
        Returns a copy of this immutable component with the specified valign.

        Sets the vertical alignment. Allowed values: "top", "middle, "bottom", and "baseline".

        Parameters:
        valign - the vertical alignment.

        Default: null.

        Returns:
        A modified copy of the this object
      • getColspan

        default int getColspan()
        Returns number of columns to span. Default: 1.
      • withColspan

        ICell<I> withColspan​(int colspan)
        Returns a copy of this immutable component with the specified colspan.

        Sets the number of columns to span.

        It is the same as the colspan attribute of HTML TD tag.

        Parameters:
        colspan - The number of columns to span.

        Default: 1.

        Returns:
        A modified copy of the this object
      • getRowspan

        default int getRowspan()
        Returns number of rows to span. Default: 1.
      • withRowspan

        ICell<I> withRowspan​(int rowspan)
        Returns a copy of this immutable component with the specified rowspan.

        Sets the number of rows to span.

        It is the same as the rows attribute of HTML TD tag.

        Parameters:
        rowspan - The number of rows to span.

        Default: 1.

        Returns:
        A modified copy of the this object
      • of

        static <I extends IAnyGroupICell<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 IAnyGroupICell<I> of​(I... children)
        Returns the instance with the given any group children.
        Parameters:
        children - The children belong to any group
        See Also:
        IAnyGroup
      • ofId

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