Interface IListcell<I extends IAnyGroup>

All Superinterfaces:
IChildable<IListcell<I>,I>, IChildrenOfInputgroup<IListcell<I>>, IComponent<IListcell<I>>, IHtmlBasedComponent<IListcell<I>>, ILabelElement<IListcell<I>>, ILabelImageElement<IListcell<I>>, IXulElement<IListcell<I>>

public interface IListcell<I extends IAnyGroup> extends ILabelImageElement<IListcell<I>>, IChildable<IListcell<I>,I>
Immutable Listcell component
Author:
katherine
See Also:
  • Listcell
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.sel.Listcell"

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

      @Derived @Nullable default 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 IListcell withWidth(@Nullable String width)
      To control the size of Foot related components, please refer to IListbox and IListheader 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
    • getHflex

      @Derived @Nullable default String getHflex()
      Description copied from interface: IHtmlBasedComponent
      Return horizontal flex hint of this component.

      Default: null

      Specified by:
      getHflex in interface IHtmlBasedComponent<I extends IAnyGroup>
    • withHflex

      default IListcell withHflex(@Nullable String hflex)
      To control the size of Foot related components, please refer to IListbox and IListheader 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

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

      Sets number of columns to span this cell.

      Parameters:
      span - Number of columns to span this cell.

      Default: 1.

      Returns:
      A modified copy of the this object
    • of

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

      static <I extends IAnyGroup> IListcell<I> of(String label, 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.
    • of

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

      static <I extends IAnyGroup> IListcell<I> ofImage(String image)
      Returns the instance with the given image.
      Parameters:
      image - The image that the cell holds.
    • ofId

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