org.zkoss.zul
Class Center

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.zul.LayoutRegion
                  extended by org.zkoss.zul.Center
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, HtmlBasedComponent, Component, Scope, ComponentCtrl, Center, LayoutRegion, XulElement
Direct Known Subclasses:
Center

public class Center
extends LayoutRegion
implements 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.

Since:
5.0.0
Author:
jumperchen
See Also:
Serialized Form

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
_height, _left, _top, _width, _zclass
 
Fields inherited from class org.zkoss.zk.ui.AbstractComponent
_visible
 
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
 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, getBorder, getCmargins, getMargins, getMaxsize, getMinsize, getTitle, isAutoscroll, isCollapsible, isFlex, isOpen, isSplittable, renderProperties, service, setAutoscroll, setBorder, setFlex, setMargins, setTitle
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
focus, getDraggable, getDroppable, getHeight, getHflex, getLeft, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, newExtraCtrl, setClass, setDraggable, setDroppable, setFocus, setHflex, setLeft, setSclass, setStyle, setTooltiptext, setTop, setVflex, setZclass, setZindex, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addForward, addForward, addForward, addForward, addMoved, addScopeListener, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, clone, containsVariable, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableClientUpdate, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getClientEvents, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getExtraCtrl, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, newChildren, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeScopeListener, render, render, render, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setVariable, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, unsetVariable, updateByClient, willPassivate, willPassivate, willSerialize, willSerialize
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zkoss.zul.api.LayoutRegion
getBorder, getCmargins, getMargins, getMaxsize, getMinsize, getTitle, isAutoscroll, isCollapsible, isOpen, isSplittable, setAutoscroll, setBorder, setFlex, setMargins, setTitle
 
Methods inherited from interface org.zkoss.zul.impl.api.XulElement
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setLeft, setSclass, setStyle, setTooltiptext, setTop, setZclass, setZindex, setZIndex
 
Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getDefinition, getDesktop, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setId, setMold, setPage, setPageBefore, setParent, setVariable, setWidgetListener, setWidgetOverride, unsetVariable
 
Methods inherited from interface org.zkoss.zk.ui.ext.Scope
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
 

Constructor Detail

Center

public Center()
Method Detail

getZclass

public java.lang.String getZclass()
Description copied from class: HtmlBasedComponent
Returns the ZK Cascading Style class(es) for this component. It usually depends on the implementation of the mold (@{link #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.

Specified by:
getZclass in interface HtmlBasedComponent
Overrides:
getZclass in class LayoutRegion
See Also:
HtmlBasedComponent.getSclass()

setCmargins

public void setCmargins(java.lang.String cmargins)
Center region can't be enabled the collapsed margin functionality.

Specified by:
setCmargins in interface LayoutRegion
Overrides:
setCmargins in class LayoutRegion

setSplittable

public void setSplittable(boolean splittable)
Center region can't be enabled the split functionality.

Specified by:
setSplittable in interface LayoutRegion
Overrides:
setSplittable in class LayoutRegion

setOpen

public void setOpen(boolean open)
Center region can't be closed.

Specified by:
setOpen in interface LayoutRegion
Overrides:
setOpen in class LayoutRegion

setCollapsible

public void setCollapsible(boolean collapsible)
Center region can't be enabled the collapse functionality.

Specified by:
setCollapsible in interface LayoutRegion
Overrides:
setCollapsible in class LayoutRegion

setMaxsize

public void setMaxsize(int maxsize)
Center region can't be enabled the maxsize.

Specified by:
setMaxsize in interface LayoutRegion
Overrides:
setMaxsize in class LayoutRegion

setMinsize

public void setMinsize(int minsize)
Center region can't be enabled the minsize.

Specified by:
setMinsize in interface LayoutRegion
Overrides:
setMinsize in class LayoutRegion

getPosition

public java.lang.String getPosition()
Returns Borderlayout.CENTER.

Specified by:
getPosition in interface LayoutRegion
Specified by:
getPosition in class LayoutRegion
See Also:
Borderlayout.NORTH, Borderlayout.SOUTH, Borderlayout.EAST, Borderlayout.WEST, Borderlayout.CENTER

setHeight

public 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).

Specified by:
setHeight in interface HtmlBasedComponent
Overrides:
setHeight in class HtmlBasedComponent

setWidth

public 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).

Specified by:
setWidth in interface HtmlBasedComponent
Overrides:
setWidth in class HtmlBasedComponent

setVisible

public boolean setVisible(boolean visible)
This component can't be hidden.

Specified by:
setVisible in interface Component
Overrides:
setVisible in class AbstractComponent
Returns:
the previous visibility

getSize

public java.lang.String getSize()
The size can't be returned in this component.

Specified by:
getSize in interface LayoutRegion
Specified by:
getSize in class LayoutRegion

setSize

public void setSize(java.lang.String size)
The size can't be specified in this component.

Specified by:
setSize in interface LayoutRegion
Specified by:
setSize in class LayoutRegion


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo