Interface IGoldenLayout
- All Superinterfaces:
IAnyGroup<IGoldenLayout>,IChildable<IGoldenLayout,,IGoldenPanel<IAnyGroup>> IComponent<IGoldenLayout>,IHtmlBasedComponent<IGoldenLayout>,IXulElement<IGoldenLayout>
GoldenLayout component
GoldenLayout is a layout container which layouts panels as docker type and is used to represent GoldenLayout. GoldenLayout is the parent component, and its children component can only be GoldenPanel.
A GoldenLayout could be nested to another GoldenLayout (actually, almost all kinds of components) to form a complicated layout.
- Author:
- katherine
- See Also:
-
GoldenLayout
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIGoldenLayout.static enumSpecifies the orient ofIGoldenLayoutcomponentstatic classBuilds an updater of typeIGoldenLayoutforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IGoldenLayoutConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiongetAreas()Return the area of this GoldenPanel.default StringReturns the layout dividing orientation.default StringReturns the client widget class.static IGoldenLayoutof(Iterable<? extends IGoldenPanel<IAnyGroup>> children) Returns the instance with the givenIGoldenPanelchildren.static IGoldenLayoutof(IGoldenPanel<IAnyGroup>... children) Returns the instance with the givenIGoldenPanelchildren.static IGoldenLayoutReturns the instance with the given vflex and hflexstatic IGoldenLayoutReturns the instance with the given id.static IGoldenLayoutReturns the instance with the given width and heightReturns a copy ofthisimmutable component with the specifiedareas.withOrient(String orient) Returns a copy ofthisimmutable component with the specifiedorient.default IGoldenLayoutwithOrient(IGoldenLayout.Orient orient) Returns a copy ofthisimmutable component with the specifiedorient.Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildrenMethods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zkmax.goldenlayout.GoldenLayout"- Specified by:
getWidgetClassin interfaceIComponent<IGoldenLayout>
-
getAreas
Return the area of this GoldenPanel.Default:
null -
withAreas
Returns a copy ofthisimmutable component with the specifiedareas.Sets a matrix-like areas template, supports only on initial rendering. Notice that areas is only supported for the initial rendering. (i.e. it won't work with
IGoldenLayout.Updater)- Parameters:
areas- The template of the goldenlayout.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getOrient
Returns the layout dividing orientation.Default:
"vertical" -
withOrient
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- Either"horizontal"or"vertical"Default:
"vertical".- Returns:
- A modified copy of the
thisobject
-
withOrient
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- TheorientDefault:
"vertical".- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the givenIGoldenPanelchildren.- Parameters:
children- The children ofIGoldenPanel
-
of
Returns the instance with the givenIGoldenPanelchildren.- Parameters:
children- The children ofIGoldenPanel
-
ofSize
Returns the instance with the given width and height- Parameters:
width- The width of the componentheight- The height of the component
-
ofFlex
Returns the instance with the given vflex and hflex- Parameters:
hflex- The horizontal flex hintvflex- The vertical flex hint
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-