|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zk.ui.HtmlBasedComponent org.zkoss.zul.impl.XulElement org.zkoss.zul.LayoutRegion org.zkoss.zul.Center
public class Center
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)
,
and setVisible(boolean)
.
Default getZclass()
: z-center.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
HtmlBasedComponent.ExtraCtrl |
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
AbstractComponent.Children |
Field Summary |
---|
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
_zclass |
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
Constructor Summary | |
---|---|
Center()
|
Method Summary | |
---|---|
protected int[] |
getDefaultCmargins()
Returns the default collapsed margin ([3, 3, 3, 3]). |
java.lang.String |
getPosition()
Returns Borderlayout.CENTER . |
java.lang.String |
getSize()
The size can't be returned in this component. |
java.lang.String |
getZclass()
Returns the ZK Cascading Style class(es) for this component. |
void |
setCmargins(java.lang.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(java.lang.String height)
The height can't be specified in this component because its height is determined by other region components ( North or South ). |
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(java.lang.String size)
The size can't be specified in this component. |
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(java.lang.String width)
The width can't be specified in this component because its width is determined by other region components ( West or East ). |
Methods inherited from class org.zkoss.zul.LayoutRegion |
---|
beforeChildAdded, beforeParentChanged, clone, getBorder, getCaption, getCmargins, getMargins, getMaxsize, getMinsize, getTitle, insertBefore, isAutoscroll, isCollapsible, isFlex, isOpen, isSplittable, onChildRemoved, renderProperties, service, setAutoscroll, setBorder, setFlex, setMargins, setTitle |
Methods inherited from class org.zkoss.zul.impl.XulElement |
---|
getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, setAction, setClass, setDraggable, setDroppable, setFocus, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Center()
Method Detail |
---|
public java.lang.String getZclass()
HtmlBasedComponent
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 of HtmlBasedComponent.getZclass()
.
Once it is changed, the default style won't be applied at all.
If you want to perform small adjustments, use HtmlBasedComponent.setSclass(java.lang.String)
instead.
getZclass
in class LayoutRegion
HtmlBasedComponent.getSclass()
public void setCmargins(java.lang.String cmargins)
setCmargins
in class LayoutRegion
LayoutRegion.getCmargins()
,
LayoutRegion.getDefaultCmargins()
public void setSplittable(boolean splittable)
setSplittable
in class LayoutRegion
public void setOpen(boolean open)
setOpen
in class LayoutRegion
public void setCollapsible(boolean collapsible)
setCollapsible
in class LayoutRegion
public void setMaxsize(int maxsize)
setMaxsize
in class LayoutRegion
public void setMinsize(int minsize)
setMinsize
in class LayoutRegion
public java.lang.String getPosition()
Borderlayout.CENTER
.
getPosition
in class LayoutRegion
Borderlayout.NORTH
,
Borderlayout.SOUTH
,
Borderlayout.EAST
,
Borderlayout.WEST
,
Borderlayout.CENTER
public void setHeight(java.lang.String height)
North
or South
).
setHeight
in class HtmlBasedComponent
public void setWidth(java.lang.String width)
West
or East
).
setWidth
in class HtmlBasedComponent
HtmlBasedComponent.setWidthDirectly(java.lang.String)
,
AbstractComponent.disableClientUpdate(boolean)
public boolean setVisible(boolean visible)
setVisible
in interface Component
setVisible
in class AbstractComponent
public java.lang.String getSize()
getSize
in class LayoutRegion
public void setSize(java.lang.String size)
setSize
in class LayoutRegion
protected int[] getDefaultCmargins()
getDefaultCmargins
in class LayoutRegion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |