Interface ICardlayout<I extends IAnyGroup>

All Superinterfaces:
IAnyGroup<ICardlayout<I>>, IChildable<ICardlayout<I>,I>, IComponent<ICardlayout<I>>, IHtmlBasedComponent<ICardlayout<I>>, IXulElement<ICardlayout<I>>

public interface ICardlayout<I extends IAnyGroup> extends IXulElement<ICardlayout<I>>, IChildable<ICardlayout<I>,I>, IAnyGroup<ICardlayout<I>>
Immutable Cardlayout component

A layout allow end user change view like change card.

Author:
katherine
See Also:
  • Cardlayout
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkmax.layout.Cardlayout"

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

      default String getOrient()
      Returns the orient.

      Default: "horizontal".

    • withOrient

      ICardlayout<I> withOrient(String orient)
      Returns a copy of this immutable component with the specified orient.

      Sets the orient of component

      Parameters:
      orient - Either "horizontal" or "vertical"

      Default: "horizontal".

      Returns:
      A modified copy of the this object
    • withOrient

      default ICardlayout<I> withOrient(ICardlayout.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
    • of

      static <I extends IAnyGroup> ICardlayout<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> ICardlayout<I> of(I... children)
      Returns the instance with the given any group children.
      Parameters:
      children - The children belong to any group
      See Also:
    • ofSize

      static <I extends IAnyGroup> ICardlayout<I> ofSize(String width, String height)
      Returns the instance with the given size, width and height
      Parameters:
      width - The width of the component
      height - The height of the component
    • ofVflex

      static <I extends IAnyGroup> ICardlayout<I> ofVflex(String vflex)
      Returns the instance with the given vflex.
      Parameters:
      vflex - The vertical flex hint.
    • ofOrient

      static <I extends IAnyGroup> ICardlayout<I> ofOrient(ICardlayout.Orient orient)
      Returns the instance with the given orient.
      Parameters:
      orient - The orient of this component.
    • ofId

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