Interface ILinelayout

All Superinterfaces:
IAnyGroup<ILinelayout>, IChildable<ILinelayout,ILineitem<IAnyGroup>>, IComponent<ILinelayout>, IHtmlBasedComponent<ILinelayout>, IXulElement<ILinelayout>

Immutable Linelayout component

A linelayout component for stylistically displaying chronological information.

Author:
katherine
See Also:
  • Linelayout
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkmax.layout.Linelayout"

      Specified by:
      getWidgetClass in interface IComponent<ILinelayout>
    • getLineStyle

      @Nullable String getLineStyle()
      Returns the CSS style for the line.

      Default: null

    • withLineStyle

      ILinelayout withLineStyle(@Nullable String lineStyle)
      Returns a copy of this immutable component with the specified lineStyle.

      Sets the CSS style for the line.

      Parameters:
      lineStyle - Sets the CSS style for the line.

      Default: null.

      Returns:
      A modified copy of the this object
    • getOrient

      default String getOrient()
      Returns the orient.

      Default: "vertical".

    • withOrient

      ILinelayout withOrient(String orient)
      Returns a copy of this immutable component with the specified orient.

      Sets the orient.

      Parameters:
      orient - Either "horizontal" or vertical

      Default: "vertical".

      Returns:
      A modified copy of the this object
    • withOrient

      default ILinelayout withOrient(ILinelayout.Orient orient)
      Returns a copy of this immutable component with the specified orient.

      Sets the orient of component

      Parameters:
      orient - The orient

      Default: "horizontal".

      Returns:
      A modified copy of the this object
    • getFirstScale

      default int getFirstScale()
      Returns the scale of space occupied by the first area.

      Default: 1.

    • withFirstScale

      ILinelayout withFirstScale(int firstScale)
      Returns a copy of this immutable component with the specified firstScale.

      Sets the scale of space occupied by the first area.

      Parameters:
      firstScale - The scale of space occupied by the first area.

      Default: 1.

      Returns:
      A modified copy of the this object
    • getLastScale

      default int getLastScale()
      Returns the scale of space occupied by the last area.

      Default: 1.

    • withLastScale

      ILinelayout withLastScale(int lastScale)
      Returns a copy of this immutable component with the specified lastScale.

      Sets the scale of space occupied by the last area.

      Parameters:
      lastScale - The scale of space occupied by the last area.

      Default: 1.

      Returns:
      A modified copy of the this object
    • of

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

      static ILinelayout of(ILineitem<IAnyGroup>... children)
      Returns the instance with the given ILineitem children.
      Parameters:
      children - The children of ILineitem
    • ofOrient

      static ILinelayout ofOrient(ILinelayout.Orient orient)
      Returns the instance with the given orient.
      Parameters:
      orient - The orient of this component.
    • ofId

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