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>
ImmutableCentercomponentA 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)andwithVisible(boolean).- Author:
- katherine
- See Also:
Center
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classICenter.Builder<I extends IAnyGroup>Builds instances of typeICenter.static classICenter.UpdaterBuilds an updater of typeICenterforUiAgent.smartUpdate(Locator, SmartUpdater).-
Nested classes/interfaces inherited from interface org.zkoss.stateless.sul.ILayoutRegion
ILayoutRegion.Border
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.StringgetHeight()Returns the height of the component.default intgetMaxsize()Returns the maximum size of the resizing component.default intgetMinsize()Returns the minimum size of the resizing component.default java.lang.StringgetWidgetClass()Returns the client widget class.default java.lang.StringgetWidth()Returns the width of the component.default booleanisCollapsible()Returns whether set the initial display to collapse.default booleanisOpen()Returns whether it is open (i.e., not collapsed.default booleanisSlidable()Returns whether users can slide (preview) the region when clicked on a collapsed region.default booleanisSlide()Returns whether it is slide down.default booleanisSplittable()Returns whether enable the split functionality.default booleanisVisible()Returns whether this component is visible at client.static <I extends IAnyGroup>
ICenter<I>of(I child)Return the instance with the given child.static <I extends IAnyGroup>
ICenter<I>ofId(java.lang.String id)Returns the instance with the given id.default ICenterwithCollapsible(boolean collapsible)Center region can't be enabled the collapse functionality.default ICenterwithHeight(java.lang.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 ICenterwithWidth(java.lang.String width)-
Methods 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, withWidgetOverrides
-
Methods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHflex, withLeft, withRenderdefer, withSclass, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withZclass, withZIndex
-
Methods inherited from interface org.zkoss.stateless.sul.ILayoutRegion
getBorder, getMargins, getTitle, isAutoscroll, isClosable, isNativeScrollbar, withAutoscroll, withBorder, withBorder, withClosable, withMargins, withNativeScrollbar, withTitle
-
Methods inherited from interface org.zkoss.stateless.sul.ISingleChildable
getChild, withChild
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zul.layout.Center"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
of
static <I extends IAnyGroup> ICenter<I> of(I child)
Return the instance with the given child.- Parameters:
child- The child from any group
-
ofId
static <I extends IAnyGroup> ICenter<I> ofId(java.lang.String id)
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
default ICenter withVisible(boolean visible)
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
default ICenter withSplittable(boolean splittable)
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
default ICenter withOpen(boolean open)
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
default ICenter withCollapsible(boolean collapsible)
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
default ICenter withMaxsize(int maxsize)
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
default ICenter withMinsize(int minsize)
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
@Derived @Nullable default java.lang.String 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
default ICenter withHeight(@Nullable java.lang.String height)
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
@Derived @Nullable default java.lang.String 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
default ICenter withWidth(@Nullable java.lang.String width)
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
default ICenter withSlide(boolean slide)
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
default ICenter withSlidable(boolean slidable)
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
-
-