Interface IListitem

All Superinterfaces:
IChildable<IListitem,IListcell<IAnyGroup>>, IComponent<IListitem>, IHtmlBasedComponent<IListitem>, IListboxComposite<IListitem>, IListitemBase<IListitem>, IMeshComposite<IListitem>, IXulElement<IListitem>

public interface IListitem extends IListitemBase<IListitem>, IChildable<IListitem,IListcell<IAnyGroup>>
Immutable Listitem component
Author:
katherine
See Also:
  • Listitem
  • Field Details

    • DEFAULT

      static final IListitem DEFAULT
      Constant for default attributes of this immutable component.
  • Method Details

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.sel.Listitem"

      Specified by:
      getWidgetClass in interface IComponent<IListitem>
    • getLabel

      @Nullable default String getLabel()
      Returns the label of the first IListcell it contains.

      Default: null

    • withLabel

      IListitem withLabel(@Nullable String label)
      Returns a copy of this immutable component with the specified label.

      Sets the label of the first IListcell it contains.

      If it is not created, we automatically create it.

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

      Default: null.

      Returns:
      A modified copy of the this object
    • of

      static IListitem of(String label)
      Returns the instance with the given label.
      Parameters:
      label - The label that the first cell holds.
    • of

      static IListitem of(Iterable<? extends IListcell<IAnyGroup>> children)
      Returns the instance with the given IListcell children.
      Parameters:
      children - The children for each IListcell
    • of

      static IListitem of(IListcell<IAnyGroup>... children)
      Returns the instance with the given IListcell children.
      Parameters:
      children - The children for each IListcell
    • ofId

      static IListitem ofId(String id)
      Returns the instance with the given id.
      Parameters:
      id - The id to identify this component