Interface ICell<I extends IAnyGroup>

All Superinterfaces:
IChildable<ICell<I>,I>, IComponent<ICell<I>>, IHtmlBasedComponent<ICell<I>>, IXulElement<ICell<I>>

public interface ICell<I extends IAnyGroup> extends IXulElement<ICell<I>>, IChildable<ICell<I>,I>
Immutable Cell component

The generic cell component to be embedded into IRow

Author:
katherine
See Also:
  • Cell
  • Field Details

    • DEFAULT

      static final ICell<IAnyGroup> DEFAULT
      Constant for default attributes of this immutable component.
  • Method Details

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.wgt.Cell"

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

      @Nullable String getAlign()
      Returns the horizontal alignment.

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

    • withAlign

      ICell<I> withAlign(@Nullable 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 String getValign()
      Returns the vertical alignment.

      Default: null (system default: top).

    • withValign

      ICell<I> withValign(@Nullable 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 IAnyGroup> ICell<I> of(Iterable<? extends I> children)
      Returns the instance with the given any group children.
      Parameters:
      children - The children belong to any group
      See Also:
    • of

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

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