Interface IDetail<I extends IAnyGroup>

All Superinterfaces:
IChildable<IDetail<I>,I>, IComponent<IDetail<I>>, IDetailChild<IDetail<I>>, IHtmlBasedComponent<IDetail<I>>, IXulElement<IDetail<I>>

public interface IDetail<I extends IAnyGroup> extends IDetailChild<IDetail<I>>, IChildable<IDetail<I>,I>
Immutable Detail component

The detail component is used to display a detailed section where a master row and multiple detail rows are on the same row.

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

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkex.grid.Detail"

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

      @Nullable String getContentSclass()
      Returns the style class used for the content block.

      Default: null

    • withContentSclass

      IDetail<I> withContentSclass(@Nullable String contentSclass)
      Returns a copy of this immutable component with the specified contentSclass.

      Sets the style class used for the content block.

      Parameters:
      contentSclass - The style class used for the content block.

      Default: null.

      Returns:
      A modified copy of the this object
    • getContentStyle

      @Nullable String getContentStyle()
      Returns the CSS style for the content block of the window.

      Default: null

    • withContentStyle

      IDetail<I> withContentStyle(@Nullable String contentStyle)
      Returns a copy of this immutable component with the specified contentStyle.

      Sets the CSS style for the content block of the window.

      Parameters:
      contentStyle - The CSS style for the content block of the window.

      Default: null.

      Returns:
      A modified copy of the this object
    • isOpen

      default boolean isOpen()
      Returns whether the detail is open.

      Default: false

    • withOpen

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

      Sets whether the detail is open.

      Parameters:
      open - Whether the detail is open.

      Default: false.

      Returns:
      A modified copy of the this object
    • of

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