Interface IAbsolutechildren<I extends IAnyGroup>

All Superinterfaces:
IChildable<IAbsolutechildren<I>,I>, IComponent<IAbsolutechildren<I>>, IHtmlBasedComponent<IAbsolutechildren<I>>, IXulElement<IAbsolutechildren<I>>

public interface IAbsolutechildren<I extends IAnyGroup> extends IXulElement<IAbsolutechildren<I>>, IChildable<IAbsolutechildren<I>,I>
Immutable Absolutechildren component

A container component that can contain any other ZK component and can only be contained as direct child of Absolutelayout component. It can be absolutely positioned within Absolutelayout component by either setting "x" and "y" attribute or calling withX(int) and withY(int) methods.

Author:
katherine
See Also:
  • Field Details

  • Method Details

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.layout.Absolutechildren"

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

      default int getX()
      Returns the current x position within parent container component

      Default: 0

    • withX

      IAbsolutechildren<I> withX(int x)
      Returns a copy of this immutable component with the specified x.

      Sets current x position within parent container component.

      Parameters:
      x - The x position

      Default: 0.

      Returns:
      A modified copy of the this object
    • getY

      default int getY()
      Returns the current y position within parent container component

      Default: 0

    • withY

      IAbsolutechildren<I> withY(int y)
      Returns a copy of this immutable component with the specified y.

      Sets current y position within parent container component.

      Parameters:
      y - The y position

      Default: 0.

      Returns:
      A modified copy of the this object
    • of

      static <I extends IAnyGroup> IAbsolutechildren<I> of(int x, int y, Iterable<? extends I> children)
      Returns the instance with the given x, y, and any group children.
      Parameters:
      x - The x position
      y - The y position
      children - The children belong to any group
      See Also:
    • of

      static <I extends IAnyGroup> IAbsolutechildren<I> of(int x, int y, I... children)
      Returns the instance with the given x, y, and any group children.
      Parameters:
      x - The x position
      y - The y position
      children - The children belong to any group
      See Also:
    • of

      static <I extends IAnyGroup> IAbsolutechildren of(int x, int y)
      Returns the instance with the given x and y.
      Parameters:
      x - The x position
      y - The y position
    • ofId

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