|
||||||||||
| 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.Row
public class Row
A single row in a Rows element.
Each child of the Row element is placed in each successive cell
of the grid. The row with the most child elements determines the number
of columns in each row.
Default getSclass(): the same as grid's sclass.
| 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 | |
|---|---|
Row()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAlign()
Returns the horizontal alignment of the whole row. |
java.lang.String |
getChildAttrs(int index)
Returns the HTML attributes for the child of the specified index. |
Grid |
getGrid()
Returns the grid that contains this row. |
java.lang.String |
getOuterAttrs()
|
protected int |
getRealStyleFlags()
|
java.lang.String |
getSclass()
Returns the style class. |
java.lang.String |
getSpans()
Returns the spans, which is a list of numbers separated by comma. |
java.lang.String |
getValign()
Returns the vertical alignment of the whole row. |
java.lang.Object |
getValue()
Returns the value. |
boolean |
isNowrap()
Returns the nowrap. |
void |
onDrawNewChild(org.zkoss.zk.ui.Component child,
java.lang.StringBuffer out)
|
void |
setAlign(java.lang.String align)
Sets the horizontal alignment of the whole row. |
void |
setNowrap(boolean nowrap)
Sets the nowrap. |
void |
setParent(org.zkoss.zk.ui.Component parent)
|
void |
setSclass(java.lang.String sclass)
|
void |
setSpans(java.lang.String spans)
Sets the spans, which is a list of numbers separated by comma. |
void |
setStyle(java.lang.String style)
|
void |
setValign(java.lang.String valign)
Sets the vertical alignment of the whole row. |
void |
setValue(java.lang.Object value)
Sets the value. |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, newExtraCtrl, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, 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, 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 Row()
| Method Detail |
|---|
public Grid getGrid()
public java.lang.String getAlign()
Default: null (system default: left unless CSS specified).
public void setAlign(java.lang.String align)
public boolean isNowrap()
Default: null (system default: wrap).
public void setNowrap(boolean nowrap)
public java.lang.String getValign()
Default: null (system default: top).
public void setValign(java.lang.String valign)
public java.lang.Object getValue()
Default: null.
Note: the value is application dependent, you can place whatever value you want.
public void setValue(java.lang.Object value)
value - the value.
Note: the value is application dependent, you can place whatever value you want.
public java.lang.String getSpans()
Default: empty.
public void setSpans(java.lang.String spans)
throws org.zkoss.zk.ui.WrongValueException
For example, "1,2,3" means the second column will span two columns and the following column span three columns, while others occupies one column.
org.zkoss.zk.ui.WrongValueExceptionpublic java.lang.String getChildAttrs(int index)
protected int getRealStyleFlags()
getRealStyleFlags in class org.zkoss.zk.ui.HtmlBasedComponentpublic java.lang.String getOuterAttrs()
getOuterAttrs in class XulElementpublic void setStyle(java.lang.String style)
setStyle in class org.zkoss.zk.ui.HtmlBasedComponentpublic void setSclass(java.lang.String sclass)
setSclass in class org.zkoss.zk.ui.HtmlBasedComponentpublic java.lang.String getSclass()
setSclass(java.lang.String) is called with non-empty value.
getSclass in class org.zkoss.zk.ui.HtmlBasedComponentpublic void setParent(org.zkoss.zk.ui.Component parent)
setParent in interface org.zkoss.zk.ui.ComponentsetParent in class org.zkoss.zk.ui.AbstractComponent
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 | |||||||||