Interface IBorderlayout
- All Superinterfaces:
IAnyGroup<IBorderlayout>,IComponent<IBorderlayout>,IComposite<IBorderlayout,,ILayoutRegion> IHtmlBasedComponent<IBorderlayout>,IXulElement<IBorderlayout>
Borderlayout component
The layout component is a nested component.
The parent component is borderlayout, and its children components include
north, south, west, east,
and center. All extra space is placed in the center area.
The combination of children components of borderlayout is free.
A borderlayout could be nested to another borderlayout (actually, almost all kinds of components) to form a complicated layout.
Support Application Library Properties
-
To set to true to disable the animation effects of this component. (
withAnimationDisabled(boolean))Or configure it from zk.xml by setting library properties. For example,
<library-property/> <name>org.zkoss.zul.borderlayout.animation.disable</name/> <value>true</value/> </library-property/>
- Author:
- katherine
- See Also:
-
Borderlayout
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIBorderlayout.static classBuilds an updater of typeIBorderlayoutforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IBorderlayoutConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptionReturns the center child.getEast()Returns the east child.getNorth()Returns the north child.getSouth()Returns the south child.getWest()Returns the west child.default StringReturns the client widget class.default booleanReturns whether disable animation effectsstatic IBorderlayoutof(Iterable<? extends ILayoutRegion> children) Returns the instance with the given children (i.e.static IBorderlayoutof(ILayoutRegion... children) Returns the instance with the given children (i.e.static IBorderlayoutReturns the instance with the given flex, hflex and vflex.static IBorderlayoutReturns the instance with the given id.static IBorderlayoutReturns the instance with the given size, width and height.default IBorderlayoutwithAllComponents(Iterable<? extends ILayoutRegion> elements) Copy the current immutable object with elements that replace the content ofchildren.withAnimationDisabled(boolean animationDisabled) Returns a copy ofthisimmutable component with the specifiedanimationDisabled.withCenter(ICenter center) Returns a copy ofthisimmutable component with the specifiedcenter.Returns a copy ofthisimmutable component with the specifiedeast.Returns a copy ofthisimmutable component with the specifiednorth.Returns a copy ofthisimmutable component with the specifiedsouth.Returns a copy ofthisimmutable component with the specifiedwest.Methods 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:
"zul.layout.Borderlayout"- Specified by:
getWidgetClassin interfaceIComponent<IBorderlayout>
-
getNorth
Returns the north child.Default:
null -
withNorth
Returns a copy ofthisimmutable component with the specifiednorth.Sets the north child.
- Parameters:
north- The north childDefault:
null- Returns:
- A modified copy of the
thisobject
-
getSouth
Returns the south child.Default:
null -
withSouth
Returns a copy ofthisimmutable component with the specifiedsouth.Sets the south child.
- Parameters:
south- The south childDefault:
null- Returns:
- A modified copy of the
thisobject
-
getWest
Returns the west child.Default:
null -
withWest
Returns a copy ofthisimmutable component with the specifiedwest.Sets the west child.
- Parameters:
west- The west childDefault:
null- Returns:
- A modified copy of the
thisobject
-
getEast
Returns the east child.Default:
null -
withEast
Returns a copy ofthisimmutable component with the specifiedeast.Sets the east child.
- Parameters:
east- The east childDefault:
null- Returns:
- A modified copy of the
thisobject
-
getCenter
Returns the center child.Default:
null -
withCenter
Returns a copy ofthisimmutable component with the specifiedcenter.Sets the center child.
- Parameters:
center- The center childDefault:
null- Returns:
- A modified copy of the
thisobject
-
withAllComponents
Description copied from interface:ICompositeCopy the current immutable object with elements that replace the content ofchildren. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Specified by:
withAllComponentsin interfaceIComposite<IBorderlayout,ILayoutRegion> - Parameters:
elements- An iterable of children elements to set- Returns:
- A modified copy of
thisobject
-
isAnimationDisabled
default boolean isAnimationDisabled()Returns whether disable animation effectsDefault:
false, if the"org.zkoss.zul.borderlayout.animation.disabled"library property is not set in zk.xml. -
withAnimationDisabled
Returns a copy ofthisimmutable component with the specifiedanimationDisabled.Sets to disable animation effects.
- Parameters:
animationDisabled- Whether to disable animation effects.Default:
false- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given children (i.e.north,south,west,east, andcenter). Each region can only be once.- Parameters:
children- The children belong to anyILayoutRegion
-
of
Returns the instance with the given children (i.e.north,south,west,east, andcenter). Each region can only be once.- Parameters:
children- The children belong to anyILayoutRegion
-
ofSize
Returns the instance with the given size, width and height.- Parameters:
width- The width of the componentheight- The height of the component
-
ofFlex
Returns the instance with the given flex, hflex and vflex.- 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
-