Interface IWest<I extends IAnyGroup>

All Superinterfaces:
IComponent<IWest<I>>, IHtmlBasedComponent<IWest<I>>, ILayoutRegion<IWest<I>>, ISingleChildable<IWest<I>,I>, IXulElement<IWest<I>>

public interface IWest<I extends IAnyGroup> extends ILayoutRegion<IWest<I>>, ISingleChildable<IWest<I>,I>
Immutable West component

A west region of a border layout.

Author:
katherine
See Also:
  • West
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.layout.West"

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

      @Lazy @Nullable default String getSize()
      Returns the size of this region. This method is shortcut for IHtmlBasedComponent.getWidth().
    • withSize

      default IWest<I> withSize(@Nullable String size)
      Returns a copy of this immutable component with the specified size.

      This method is shortcut for IHtmlBasedComponent.withWidth(String).

      Parameters:
      size - The width of the component.

      Default: null

      Returns:
      A modified copy of the this object
    • getCmargins

      default String getCmargins()
      Returns the collapsed margins, which is a list of numbers separated by comma.

      Default: "0,3,3,0"

    • withCmargins

      IWest<I> withCmargins(String cmargins)
      Returns a copy of this immutable component with the specified cmargins.

      Sets the collapsed margins for the component "0,1,2,3" that direction is "top,left,right,bottom"

      Parameters:
      cmargins - The collapsed margins for the component

      Default: "0,3,3,0"

      Returns:
      A modified copy of the this object
    • of

      static <I extends IAnyGroup> IWest<I> of(I child)
      Return the instance with the given child.
      Parameters:
      child - The child from any group
    • ofId

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