Interface IRowlayout

All Superinterfaces:
IAnyGroup<IRowlayout>, IChildable<IRowlayout,IRowchildren>, IComponent<IRowlayout>, IHtmlBasedComponent<IRowlayout>, IXulElement<IRowlayout>

Immutable Rowlayout component

Divide the parent container into a row of equal-width columns separated by spacings. Stacking multiple rowlayout components with the same configuration creates a grid inside the parent container.

Author:
katherine
See Also:
  • Rowlayout
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkmax.layout.Rowlayout"

      Specified by:
      getWidgetClass in interface IComponent<IRowlayout>
    • getWidth

      @Derived @Nullable default String getWidth()
      Description copied from interface: IHtmlBasedComponent
      Returns the width of the component. If not specified, null is assumed.

      Default: null

      Specified by:
      getWidth in interface IHtmlBasedComponent<IRowlayout>
    • withWidth

      default IRowlayout withWidth(@Nullable String width)
      Readonly.
      Specified by:
      withWidth in interface IHtmlBasedComponent<IRowlayout>
      Parameters:
      width - The width of the component.

      Default: null

      Returns:
      A modified copy of the this object
    • getHflex

      @Derived @Nullable default String getHflex()
      Description copied from interface: IHtmlBasedComponent
      Return horizontal flex hint of this component.

      Default: null

      Specified by:
      getHflex in interface IHtmlBasedComponent<IRowlayout>
    • withHflex

      default IRowlayout withHflex(@Nullable String hflex)
      Readonly
      Specified by:
      withHflex in interface IHtmlBasedComponent<IRowlayout>
      Parameters:
      hflex - The horizontal flex hint.

      Default: null

      Returns:
      A modified copy of the this object
    • getNcols

      default int getNcols()
      Returns number of columns to divide the row into

      Default: 12

    • withNcols

      IRowlayout withNcols(int ncols)
      Returns a copy of this immutable component with the specified ncols.

      Sets the number of columns to divide the row into

      Parameters:
      ncols - The number of columns to divide the row into

      Default: 12.

      Returns:
      A modified copy of the this object
    • getSpacing

      default String getSpacing()
      Returns spacing between columns should be given as a ratio to the column width. e.g. "1/3", "33.3%", or "0.3333"

      Default: 20.0/60.0 = 0.3333...

    • withSpacing

      IRowlayout withSpacing(String spacing)
      Returns a copy of this immutable component with the specified spacing.

      Sets the spacing between columns should be given as a ratio to the column width.

      Parameters:
      spacing - The spacing between columns should be given as a ratio to the column width.

      Default: "0.333333333333333".

      Returns:
      A modified copy of the this object
    • of

      static IRowlayout of(Iterable<? extends IRowchildren<IAnyGroup>> children)
      Returns the instance with the given IRowchildren children.
      Parameters:
      children - The children of IRowchildren
    • of

      static IRowlayout of(IRowchildren<IAnyGroup>... children)
      Returns the instance with the given IRowchildren children.
      Parameters:
      children - The children of IRowchildren
    • ofId

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