Interface IRowchildren<I extends IAnyGroup>

All Superinterfaces:
IComponent<IRowchildren<I>>, IHtmlBasedComponent<IRowchildren<I>>, ISingleChildable<IRowchildren<I>,I>, IXulElement<IRowchildren<I>>

public interface IRowchildren<I extends IAnyGroup> extends IXulElement<IRowchildren<I>>, ISingleChildable<IRowchildren<I>,I>
Immutable Rowchildren component

Rowchildren component is used for placing components inside the grid created by rowlayout component. It allows the user to specify the number of grid columns to occupy and whether to skip ahead a few columns.

Author:
katherine
See Also:
  • Rowchildren
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkmax.layout.Rowchildren"

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

      default int getColspan()
      Returns number of columns to occupy

      Default: 1

    • withColspan

      IRowchildren withColspan(int colspan)
      Returns a copy of this immutable component with the specified colspan.

      Sets number of columns to occupy

      Parameters:
      colspan - The number of columns to occupy

      Default: 1.

      Returns:
      A modified copy of the this object
    • getOffset

      default int getOffset()
      Returns number of columns to skip ahead

      Default: 0

    • withOffset

      IRowchildren withOffset(int offset)
      Returns a copy of this immutable component with the specified offset.

      Sets number of columns to skip ahead

      Parameters:
      offset - The number of columns to skip ahead

      Default: 0.

      Returns:
      A modified copy of the this object
    • of

      static <I extends IAnyGroup> IRowchildren<I> of(I child)
      Returns the instance with the given child.
      Parameters:
      child - The children belong to any group
      See Also:
    • ofId

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