|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.box.Layout
public class Layout
A skeleton of Vlayout and Hlayout.
Field Summary |
---|
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
protected String |
encloseChildHTML_(Widget child,
Array out)
Enclose child with HTML tag such as DIV, and return a HTML code or add HTML fragments in out array. |
String |
getSpacing()
Returns the spacing between adjacent children, or null if the default spacing is used. |
protected boolean |
isVertical_()
Returns whether the layout is vertical |
void |
setSpacing(String spacing)
Sets the spacing between adjacent children. |
void |
syncSize()
Synchronizes the size immediately. |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getSpacing()
Default: 0.3em (means to use the default spacing).
public void setSpacing(String spacing)
spacing
- the spacing (such as "0", "5px", "3pt" or "1em"),
or null to use the default spacing. If the spacing is set to "auto",
the DOM style is left intact, so the spacing can be customized from
CSS.getSpacing()
public void syncSize()
Widget.inServer
is true).
You have to invoke this method only if you create this widget
at client and add or remove children from this widget.
protected String encloseChildHTML_(Widget child, Array out)
child
- the child which will be enclosedout
- an array of HTML fragments.
protected boolean isVertical_()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |