Interface IListgroup

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

public interface IListgroup extends IListgroupChild<IListgroup>
Immutable Listgroup component

Adds the ability for single level grouping to the Listbox.

Support @Action

Name Action Type
onOpen ActionData: OpenData
Denotes user has opened or closed a component. It is useful to implement load-on-demand by listening to the onOpen action, and creating components when the first time the component is opened.
Author:
katherine
See Also:
  • Listgroup
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkex.sel.Listgroup"

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

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

      Default: null

    • withLabel

      IListgroup 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
    • isOpen

      default boolean isOpen()
      Returns whether this container is open.

      Default: true.

    • withOpen

      IListgroup withOpen(boolean open)
      Returns a copy of this immutable component with the specified open.

      Sets whether this container is open.

      Parameters:
      open - false to hide all sublevel items.

      Default: true.

      Returns:
      A modified copy of the this object
    • of

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

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

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

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