Interface IPortallayout

All Superinterfaces:
IAnyGroup<IPortallayout>, IChildable<IPortallayout,IPortalchildren>, IComponent<IPortallayout>, IHtmlBasedComponent<IPortallayout>, IXulElement<IPortallayout>

Immutable Portallayout component

A portal layout lays out a container which can have multiple columns, and each column may contain one or more panel. Portal layout provides a way to drag-and-drop panel into other portalchildren from the same portal layout

Support @Action

Name Action Type
onPortalDrop ActionData: PortalDropData
Represents an action after a portal being dropped and before a portal being moved.
Author:
katherine
See Also:
  • Portallayout
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkmax.layout.Portallayout"

      Specified by:
      getWidgetClass in interface IComponent<IPortallayout>
    • getMaximizedMode

      default String getMaximizedMode()
      Returns the mode of the maximized panel.

      Default: "column"

    • withMaximizedMode

      IPortallayout withMaximizedMode(String maximizedMode)
      Returns a copy of this immutable component with the specified maximizedMode.

      Sets the mode of the maximized panel

      Parameters:
      maximizedMode - The mode of the maximized panel, "whole" and "column"

      Default: "column".

      Returns:
      A modified copy of the this object
    • withMaximizedMode

      default IPortallayout withMaximizedMode(IPortallayout.MaximizedMode maximizedMode)
      Returns a copy of this immutable component with the specified maximizedMode.

      Sets the mode of the maximized panel

      Parameters:
      maximizedMode - The mode of the maximized panel, "whole" and "column"

      Default: "column".

      Returns:
      A modified copy of the this object
    • getOrient

      default String getOrient()
      Returns the orient.

      Default: "vertical"

    • withOrient

      IPortallayout 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: "vertical".

      Returns:
      A modified copy of the this object
    • withOrient

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

      Sets the orient of component

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

      Default: "vertical".

      Returns:
      A modified copy of the this object
    • of

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

      static IPortallayout of(IPortalchildren... children)
      Returns the instance with the given IPortalchildren children.
      Parameters:
      children - The children of IPortalchildren
    • ofSize

      static IPortallayout 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
    • ofId

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