Interface IHlayout<I extends IAnyGroup>

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

public interface IHlayout<I extends IAnyGroup> extends ILayout<IHlayout<I>>, IChildable<IHlayout<I>,I>, IAnyGroup<IHlayout<I>>
Immutable Hlayout component

The hlayout component is a simple horizontal oriented layout. It layouts its child components horizontally in a row.

Author:
katherine
See Also:
  • Hlayout
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.box.Hlayout"

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

      default String getValign()
      Returns the vertical-align property used for the inner children.

      Default: "top".

    • withValign

      IHlayout<I> withValign(String valign)
      Returns a copy of this immutable component with the specified valign.

      Sets the vertical-align property used for the inner children.

      Parameters:
      valign - The vertical-align, allowed values are , "middle", and "bottom"

      Default: "top".

      Returns:
      A modified copy of the this object
    • withValign

      default IHlayout<I> withValign(IHlayout.VerticalAlign valign)
      Returns a copy of this immutable component with the specified valign.

      Sets the vertical-align property used for the inner children.

      Parameters:
      valign - The vertical-align of IHlayout.VerticalAlign

      Default: "top".

      Returns:
      A modified copy of the this object
    • ofId

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

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

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