|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Box
public class Box
A box.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Box()
Default: vertical ( Vbox). |
|
Box(org.zkoss.zk.ui.Component[] children)
Constructor a box by assigning an array of children. |
|
Box(java.lang.String orient)
|
|
Box(java.lang.String orient,
org.zkoss.zk.ui.Component[] children)
Constructor a box by assigning an array of children. |
|
| Method Summary | |
|---|---|
java.lang.String |
getChildInnerAttrs(org.zkoss.zk.ui.Component child)
Returns the inner attributes used to wrap the children (never null). |
java.lang.String |
getChildOuterAttrs(org.zkoss.zk.ui.Component child)
Returns the outer attributes used to wrap the children (never null). |
java.lang.String |
getHeights()
Returns the heights/widths, which is a list of numbers separated by comma to denote the height/width of each cell in a box. |
java.lang.String |
getOrient()
Returns the orient (the same as AbstractComponent.getMold()). |
java.lang.String |
getSpacing()
Returns the spacing. |
java.lang.String |
getValign()
Returns the vertical alignment of the adjacent cells of a box. |
java.lang.String |
getWidths()
Returns the widths/heights, which is a list of numbers separated by comma to denote the width/height of each cell in a box. |
void |
onDrawNewChild(org.zkoss.zk.ui.Component child,
java.lang.StringBuffer out)
|
void |
setHeights(java.lang.String heights)
Sets the widths/heights, which is a list of numbers separated by comma to denote the width/height of each cell in a box. |
void |
setOrient(java.lang.String orient)
Sets the orient. |
void |
setSpacing(java.lang.String spacing)
Sets the spacing. |
void |
setValign(java.lang.String valign)
Sets the vertical alignment of the adjacent cells of a box. |
void |
setWidths(java.lang.String widths)
Sets the widths/heights, which is a list of numbers separated by comma to denote the width/height of each cell in a box. |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getOuterAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, newExtraCtrl, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isChildable, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Box()
Vbox).
public Box(java.lang.String orient)
orient - either "horizontal" or "vertical".public Box(org.zkoss.zk.ui.Component[] children)
children - an array of children to be added
public Box(java.lang.String orient,
org.zkoss.zk.ui.Component[] children)
children - an array of children to be added| Method Detail |
|---|
public java.lang.String getOrient()
AbstractComponent.getMold()).
Default: "vertical".
public void setOrient(java.lang.String orient)
throws org.zkoss.zk.ui.WrongValueException
orient - either "horizontal" or "vertical".
org.zkoss.zk.ui.WrongValueExceptionpublic java.lang.String getSpacing()
Default: null (depending on CSS).
public void setSpacing(java.lang.String spacing)
spacing - the spacing (such as "0", "5px", "3pt" or "1em")public java.lang.String getValign()
getOrient() is horizontal (i.e.,
Hbox).
Default: top.
public void setValign(java.lang.String valign)
valign - the vertical alignment: top, middle and bottom.
If empty or null, the system default is used (usually middle).public java.lang.String getWidths()
Hbox (i.e., getOrient() is horizontal),
it is a list of widths.
If Vbox (i.e., getOrient() is vertical),
it is a list of heights.
It is the same as getHeights().
Default: empty.
public java.lang.String getHeights()
Hbox (i.e., getOrient() is horizontal),
it is a list of widths.
If Vbox (i.e., getOrient() is vertical),
it is a list of heights.
It is the same as getWidths().
Default: empty.
public void setWidths(java.lang.String widths)
throws org.zkoss.zk.ui.WrongValueException
It is the same as setHeights(java.lang.String).
For example, "10%,20%,30%" means the second cell shall occupy 10% width, the second cell 20%, the third cell 30%, and the following cells don't specify any width.
Note: the splitters are ignored, i.e., they are not cells.
Another example, ",,30%" means the third cell shall occupy 30% width, and the rest of cells don't specify any width. Of course, the real widths depend on the interpretation of the browser.
org.zkoss.zk.ui.WrongValueException
public void setHeights(java.lang.String heights)
throws org.zkoss.zk.ui.WrongValueException
It is the same as setWidths(java.lang.String).
org.zkoss.zk.ui.WrongValueExceptionpublic java.lang.String getChildOuterAttrs(org.zkoss.zk.ui.Component child)
public java.lang.String getChildInnerAttrs(org.zkoss.zk.ui.Component child)
public void onDrawNewChild(org.zkoss.zk.ui.Component child,
java.lang.StringBuffer out)
throws java.io.IOException
onDrawNewChild in interface org.zkoss.zk.ui.ComponentonDrawNewChild in class org.zkoss.zk.ui.AbstractComponentjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||