Package org.zkoss.zul
Class Center
- All Implemented Interfaces:
Serializable,Cloneable,Component,Scope,ComponentCtrl
A center region of a borderlayout.
Note: This component doesn't support the following method,
including
setSplittable(boolean), setOpen(boolean),
setCollapsible(boolean), setMaxsize(int),
setMinsize(int), setHeight(String),
setWidth(String), getSize(), setSize(String),
setSlide(boolean), setSlidable(boolean), setClosable(boolean)
and setVisible(boolean).
Default getZclass(): z-center.
- Since:
- 5.0.0
- Author:
- jumperchen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
HtmlBasedComponent.ExtraCtrlNested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
AbstractComponent.Children, AbstractComponent.ForwardInfo, AbstractComponent.TargetInfo -
Field Summary
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
_zclassFields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEFields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_CLONED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, AFTER_PARENT_CHANGED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]Returns the default collapsed margin ([3, 3, 3, 3]).ReturnsBorderlayout.CENTER.getSize()The size can't be returned in this component.Returns the ZK Cascading Style class for this component.voidsetClosable(boolean closable) Center region can't be closed.voidsetCmargins(String cmargins) Center region can't be enabled the collapsed margin functionality.voidsetCollapsible(boolean collapsible) Center region can't be enabled the collapse functionality.voidvoidsetMaxsize(int maxsize) Center region can't be enabled the maxsize.voidsetMinsize(int minsize) Center region can't be enabled the minsize.voidsetOpen(boolean open) Center region can't be closed.voidThe size can't be specified in this component.voidsetSlidable(boolean slidable) Center region can't be slided.voidsetSlide(boolean slide) Center region can't be slided.voidsetSplittable(boolean splittable) Center region can't be enabled the split functionality.booleansetVisible(boolean visible) This component can't be hidden.voidMethods inherited from class org.zkoss.zul.LayoutRegion
beforeChildAdded, beforeParentChanged, clone, getBorder, getCaption, getCmargins, getMargins, getMaxsize, getMinsize, getTitle, insertBefore, isAutoscroll, isClosable, isCollapsible, isOpen, isSlidable, isSlide, isSplittable, onChildRemoved, renderProperties, service, setAutoscroll, setBorder, setMargins, setTitleMethods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesMethods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getClientAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setClientAction, setDraggable, setDroppable, setFocus, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setSkeleton, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyMethods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, destroyIndexCacheMap, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, disableHostChanged, enableBindingAnnotation, enableHostChanged, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getForwards, getId, getIndexCacheMap, getLastChild, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getStubonlyDescendants, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, initIndexCacheMap, invalidate, isChildable, isDisabledHostChanged, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onPageDetached, onParentChanged, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, renderPropertiesOnly, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setStubonlyDescendants, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Constructor Details
-
Center
public Center()
-
-
Method Details
-
getZclass
Description copied from class:HtmlBasedComponentReturns the ZK Cascading Style class for this component. It usually depends on the implementation of the mold (AbstractComponent.getMold()).Default: null (the default value depends on element).
HtmlBasedComponent.setZclass(java.lang.String)) will completely replace the default style of a component. In other words, the default style of a component is associated with the default value ofHtmlBasedComponent.getZclass(). Once it is changed, the default style won't be applied at all. If you want to perform small adjustments, useHtmlBasedComponent.setSclass(java.lang.String)instead.- Overrides:
getZclassin classLayoutRegion- See Also:
-
setCmargins
Center region can't be enabled the collapsed margin functionality.- Overrides:
setCmarginsin classLayoutRegion- See Also:
-
setSplittable
public void setSplittable(boolean splittable) Center region can't be enabled the split functionality.- Overrides:
setSplittablein classLayoutRegion
-
setOpen
public void setOpen(boolean open) Center region can't be closed.- Overrides:
setOpenin classLayoutRegion
-
setCollapsible
public void setCollapsible(boolean collapsible) Center region can't be enabled the collapse functionality.- Overrides:
setCollapsiblein classLayoutRegion
-
setMaxsize
public void setMaxsize(int maxsize) Center region can't be enabled the maxsize.- Overrides:
setMaxsizein classLayoutRegion
-
setMinsize
public void setMinsize(int minsize) Center region can't be enabled the minsize.- Overrides:
setMinsizein classLayoutRegion
-
getPosition
ReturnsBorderlayout.CENTER.- Specified by:
getPositionin classLayoutRegion- See Also:
-
setHeight
The height can't be specified in this component because its height is determined by other region components (NorthorSouth).- Overrides:
setHeightin classHtmlBasedComponent
-
setWidth
The width can't be specified in this component because its width is determined by other region components (WestorEast).- Overrides:
setWidthin classHtmlBasedComponent- See Also:
-
setVisible
public boolean setVisible(boolean visible) This component can't be hidden.- Specified by:
setVisiblein interfaceComponent- Overrides:
setVisiblein classAbstractComponent- Returns:
- the previous visibility
-
getSize
The size can't be returned in this component.- Specified by:
getSizein classLayoutRegion
-
setSize
The size can't be specified in this component.- Specified by:
setSizein classLayoutRegion
-
setSlide
public void setSlide(boolean slide) Center region can't be slided.- Overrides:
setSlidein classLayoutRegion
-
setSlidable
public void setSlidable(boolean slidable) Center region can't be slided.- Overrides:
setSlidablein classLayoutRegion- Parameters:
slidable- whether users can slide (preview) the region.
-
setClosable
public void setClosable(boolean closable) Center region can't be closed.- Overrides:
setClosablein classLayoutRegion- Parameters:
closable- whether users can open or close the region.
-
getDefaultCmargins
protected int[] getDefaultCmargins()Returns the default collapsed margin ([3, 3, 3, 3]).- Specified by:
getDefaultCmarginsin classLayoutRegion- Since:
- 5.0.5
-