Package org.zkoss.stateless.sul
Interface ICenter<I extends IAnyGroup>
- All Superinterfaces:
IComponent<ICenter<I>>,IHtmlBasedComponent<ICenter<I>>,ILayoutRegion<ICenter<I>>,ISingleChildable<ICenter<I>,,I> IXulElement<ICenter<I>>
public interface ICenter<I extends IAnyGroup>
extends ILayoutRegion<ICenter<I>>, ISingleChildable<ICenter<I>,I>
Immutable
Center component
A center region of a borderlayout.
Note: This component doesn't support the following method,
including withSplittable(boolean), withOpen(boolean),
withCollapsible(boolean), withMaxsize(int),
withMinsize(int), withHeight(String),
withWidth(String), withSlidable(boolean), withSlide(boolean),
ILayoutRegion.withClosable(boolean) and withVisible(boolean).
- Author:
- katherine
- See Also:
-
Center
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classICenter.Builder<I extends IAnyGroup>Builds instances of typeICenter.static classBuilds an updater of typeICenterforUiAgent.smartUpdate(Locator, SmartUpdater).Nested classes/interfaces inherited from interface org.zkoss.stateless.sul.ILayoutRegion
ILayoutRegion.Border -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the height of the component.default intReturns the maximum size of the resizing component.default intReturns the minimum size of the resizing component.default StringReturns the client widget class.default StringgetWidth()Returns the width of the component.default booleanReturns whether set the initial display to collapse.default booleanisOpen()Returns whether it is open (i.e., not collapsed.default booleanReturns whether users can slide (preview) the region when clicked on a collapsed region.default booleanisSlide()Returns whether it is slide down.default booleanReturns whether enable the split functionality.default booleanReturns whether this component is visible at client.of(I child) Return the instance with the given child.Returns the instance with the given id.default ICenterwithCollapsible(boolean collapsible) Center region can't be enabled the collapse functionality.default ICenterwithHeight(String height) default ICenterwithMaxsize(int maxsize) Center region can't be enabled the maxsize.default ICenterwithMinsize(int minsize) Center region can't be enabled the minsize.default ICenterwithOpen(boolean open) Center region can't be closed.default ICenterwithSlidable(boolean slidable) Center region can't be slided.default ICenterwithSlide(boolean slide) Center region can't be slided.default ICenterwithSplittable(boolean splittable) Center region can't be enabled the split functionality.default ICenterwithVisible(boolean visible) This component can't be hidden.default ICenterMethods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.ILayoutRegion
getBorder, getMargins, getTitle, isAutoscroll, isClosable, isNativeScrollbar, withAutoscroll, withBorder, withBorder, withClosable, withMargins, withNativeScrollbar, withTitleMethods inherited from interface org.zkoss.stateless.sul.ISingleChildable
getChild, withChildMethods 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.Center"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
of
Return the instance with the given child.- Parameters:
child- The child from any group
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
isVisible
@Derived default boolean isVisible()Description copied from interface:IComponentReturns whether this component is visible at client.Default:
true- Specified by:
isVisiblein interfaceIComponent<I extends IAnyGroup>
-
withVisible
This component can't be hidden.- Specified by:
withVisiblein interfaceIComponent<I extends IAnyGroup>- Parameters:
visible- Sets whetherthiscomponent is visible at client.Default:
true- Returns:
- A modified copy of
thisobject
-
isSplittable
@Derived default boolean isSplittable()Description copied from interface:ILayoutRegionReturns whether enable the split functionality.Default:
false.- Specified by:
isSplittablein interfaceILayoutRegion<I extends IAnyGroup>
-
withSplittable
Center region can't be enabled the split functionality.- Specified by:
withSplittablein interfaceILayoutRegion<I extends IAnyGroup>- Parameters:
splittable- Whether enable the split functionality.- Returns:
- A modified copy of the
thisobject
-
isOpen
@Derived default boolean isOpen()Description copied from interface:ILayoutRegionReturns whether it is open (i.e., not collapsed. Meaningful only ifILayoutRegion.isCollapsible()is not false).Default:
true.- Specified by:
isOpenin interfaceILayoutRegion<I extends IAnyGroup>
-
withOpen
Center region can't be closed.- Specified by:
withOpenin interfaceILayoutRegion<I extends IAnyGroup>- Parameters:
open- Whether to open.- Returns:
- A modified copy of the
thisobject
-
isCollapsible
@Derived default boolean isCollapsible()Description copied from interface:ILayoutRegionReturns whether set the initial display to collapse.It only applied when
ILayoutRegion.getTitle()is not null.Default:
false.- Specified by:
isCollapsiblein interfaceILayoutRegion<I extends IAnyGroup>
-
withCollapsible
Center region can't be enabled the collapse functionality.- Specified by:
withCollapsiblein interfaceILayoutRegion<I extends IAnyGroup>- Parameters:
collapsible- Whether set the initial display to collapse.- Returns:
- A modified copy of the
thisobject
-
getMaxsize
@Derived default int getMaxsize()Description copied from interface:ILayoutRegionReturns the maximum size of the resizing component.Default:
2000.- Specified by:
getMaxsizein interfaceILayoutRegion<I extends IAnyGroup>
-
withMaxsize
Center region can't be enabled the maxsize.- Specified by:
withMaxsizein interfaceILayoutRegion<I extends IAnyGroup>- Parameters:
maxsize- The maximum size of the resizing component.- Returns:
- A modified copy of the
thisobject
-
getMinsize
@Derived default int getMinsize()Description copied from interface:ILayoutRegionReturns the minimum size of the resizing component.Default:
0.- Specified by:
getMinsizein interfaceILayoutRegion<I extends IAnyGroup>
-
withMinsize
Center region can't be enabled the minsize.- Specified by:
withMinsizein interfaceILayoutRegion<I extends IAnyGroup>- Parameters:
minsize- The minimum size of the resizing component.- Returns:
- A modified copy of the
thisobject
-
getHeight
Description copied from interface:IHtmlBasedComponentReturns the height of the component. If not specified,nullis assumed.Default:
null- Specified by:
getHeightin interfaceIHtmlBasedComponent<I extends IAnyGroup>
-
withHeight
The height can't be specified in this component because its height is determined by other region components (INorthorISouth).- Specified by:
withHeightin interfaceIHtmlBasedComponent<I extends IAnyGroup>- Parameters:
height- The height of the component.Default:
null- Returns:
- A modified copy of the
thisobject
-
getWidth
Description copied from interface:IHtmlBasedComponentReturns the width of the component. If not specified,nullis assumed.Default:
null- Specified by:
getWidthin interfaceIHtmlBasedComponent<I extends IAnyGroup>
-
withWidth
The width can't be specified in this component because its width is determined by other region components (IWestorIEast).- Specified by:
withWidthin interfaceIHtmlBasedComponent<I extends IAnyGroup>- Parameters:
width- The width of the component.Default:
null- Returns:
- A modified copy of the
thisobject
-
isSlide
@Derived default boolean isSlide()Description copied from interface:ILayoutRegionReturns whether it is slide down.Default:
false.- Specified by:
isSlidein interfaceILayoutRegion<I extends IAnyGroup>
-
withSlide
Center region can't be slided.- Specified by:
withSlidein interfaceILayoutRegion<I extends IAnyGroup>- Parameters:
slide- Whether slides down or up the regionDefault:
false.- Returns:
- A modified copy of the
thisobject
-
isSlidable
@Derived default boolean isSlidable()Description copied from interface:ILayoutRegionReturns whether users can slide (preview) the region when clicked on a collapsed region. In other words, if false, clicking on a collapsed region will open it instead of sliding.Default:
true.- Specified by:
isSlidablein interfaceILayoutRegion<I extends IAnyGroup>
-
withSlidable
Center region can't be slided.- Specified by:
withSlidablein interfaceILayoutRegion<I extends IAnyGroup>- Parameters:
slidable- Whether users can slide this region.Default:
true.- Returns:
- A modified copy of the
thisobject
-