Interface IGroup<I extends IAnyGroup>

All Superinterfaces:
IChildable<IGroup<I>,I>, IComponent<IGroup<I>>, IGroupChild<IGroup<I>>, IHtmlBasedComponent<IGroup<I>>, IRowBase<IGroup<I>>, IXulElement<IGroup<I>>

public interface IGroup<I extends IAnyGroup> extends IGroupChild<IGroup<I>>, IChildable<IGroup<I>,I>
Immutable Group component

Adds the ability for single level grouping to the Grid.

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:
  • Group
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkex.grid.Group"

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

      @Nullable default String getLabel()
      Returns the value of the ILabel it contains, or null if no such cell.
    • withLabel

      IGroup<I> withLabel(@Nullable String label)
      Returns a copy of this immutable component with the specified label.

      Sets the value of the ILabel it contains.

      If it is not created, we automatically create it.

      Parameters:
      label - The label of the first child

      Default: null.

      Returns:
      A modified copy of the this object
    • isOpen

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

      Default: true.

    • withOpen

      IGroup<I> withOpen(boolean open)
      Returns a copy of this immutable component with the specified open.

      Sets whether this container is open.

      Parameters:
      open - Whether it's open.

      Default: true.

      Returns:
      A modified copy of the this object
    • of

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

      static <I extends IAnyGroup> IGroup<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> IGroup<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> IGroup<I> ofId(String id)
      Returns the instance with the given id.
      Parameters:
      id - The id to identify this component