public class Center extends LayoutRegion
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.
| Constructor and Description |
|---|
Center() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
getDefaultCmargins()
Returns the default collapsed margin ([3, 3, 3, 3]).
|
String |
getPosition()
Returns
Borderlayout.CENTER. |
String |
getSize()
The size can't be returned in this component.
|
String |
getZclass() |
void |
setClosable(boolean closable)
Center region can't be closed.
|
void |
setCmargins(String cmargins)
Center region can't be enabled the collapsed margin functionality.
|
void |
setCollapsible(boolean collapsible)
Center region can't be enabled the collapse functionality.
|
void |
setHeight(String height)
|
void |
setMaxsize(int maxsize)
Center region can't be enabled the maxsize.
|
void |
setMinsize(int minsize)
Center region can't be enabled the minsize.
|
void |
setOpen(boolean open)
Center region can't be closed.
|
void |
setSize(String size)
The size can't be specified in this component.
|
void |
setSlidable(boolean slidable)
Center region can't be slided.
|
void |
setSlide(boolean slide)
Center region can't be slided.
|
void |
setSplittable(boolean splittable)
Center region can't be enabled the split functionality.
|
boolean |
setVisible(boolean visible)
This component can't be hidden.
|
void |
setWidth(String width)
|
beforeChildAdded, beforeParentChanged, clone, getBorder, getCaption, getCmargins, getMargins, getMaxsize, getMinsize, getTitle, insertBefore, isAutoscroll, isClosable, isCollapsible, isFlex, isOpen, isSlidable, isSlide, isSplittable, onChildRemoved, renderProperties, service, setAutoscroll, setBorder, setFlex, setMargins, setTitlegetContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesaddSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, 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, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic String getZclass()
getZclass in class LayoutRegionpublic void setCmargins(String cmargins)
setCmargins in class LayoutRegionLayoutRegion.getCmargins(),
LayoutRegion.getDefaultCmargins()public void setSplittable(boolean splittable)
setSplittable in class LayoutRegionpublic void setOpen(boolean open)
setOpen in class LayoutRegionpublic void setCollapsible(boolean collapsible)
setCollapsible in class LayoutRegionpublic void setMaxsize(int maxsize)
setMaxsize in class LayoutRegionpublic void setMinsize(int minsize)
setMinsize in class LayoutRegionpublic String getPosition()
Borderlayout.CENTER.getPosition in class LayoutRegionBorderlayout.NORTH,
Borderlayout.SOUTH,
Borderlayout.EAST,
Borderlayout.WEST,
Borderlayout.CENTERpublic void setHeight(String height)
North or South).setHeight in class org.zkoss.zk.ui.HtmlBasedComponentpublic void setWidth(String width)
West or East).setWidth in class org.zkoss.zk.ui.HtmlBasedComponentpublic boolean setVisible(boolean visible)
setVisible in interface org.zkoss.zk.ui.ComponentsetVisible in class org.zkoss.zk.ui.AbstractComponentpublic String getSize()
getSize in class LayoutRegionpublic void setSize(String size)
setSize in class LayoutRegionpublic void setSlide(boolean slide)
setSlide in class LayoutRegionpublic void setSlidable(boolean slidable)
setSlidable in class LayoutRegionslidable - whether users can slide (preview) the region.public void setClosable(boolean closable)
setClosable in class LayoutRegionclosable - whether users can open or close the region.protected int[] getDefaultCmargins()
getDefaultCmargins in class LayoutRegionCopyright © 2023. All rights reserved.