public class Row extends XulElement
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 getZclass()
: z-row. (since 3.5.0)
Modifier and Type | Class and Description |
---|---|
protected class |
Row.ExtraCtrl
A utility class to implement
HtmlBasedComponent.getExtraCtrl() . |
Constructor and Description |
---|
Row() |
Modifier and Type | Method and Description |
---|---|
void |
beforeChildAdded(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild) |
void |
beforeParentChanged(org.zkoss.zk.ui.Component parent) |
Object |
clone() |
String |
getAlign()
Returns the horizontal alignment of the whole row.
|
Detail |
getDetailChild()
Returns the child detail component.
|
Object |
getExtraCtrl() |
Grid |
getGrid()
Returns the grid that contains this row.
|
Group |
getGroup()
Returns the group that this row belongs to, or null.
|
int |
getIndex()
Returns the index of the specified row.
|
String |
getSclass()
Returns the style class.
|
String |
getSpans()
Deprecated.
As of release 5.0.0, use
Cell instead. |
String |
getValign()
Returns the vertical alignment of the whole row.
|
<T> T |
getValue()
Returns the value.
|
String |
getZclass() |
boolean |
insertBefore(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild) |
boolean |
isNowrap()
Returns the nowrap.
|
void |
onChildRemoved(org.zkoss.zk.ui.Component child) |
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
setAlign(String align)
Sets the horizontal alignment of the whole row.
|
void |
setHflex(String flex)
|
void |
setNowrap(boolean nowrap)
Sets the nowrap.
|
void |
setSpans(String spans)
Deprecated.
As of release 5.0.0, use
Cell instead. |
void |
setStubonly(boolean stubonly)
Deprecated.
as of release 7.0.3.
|
void |
setStubonly(String stubonly)
Deprecated.
as of release 7.0.3.
|
void |
setValign(String valign)
Sets the vertical alignment of the whole row.
|
<T> void |
setValue(T value)
Sets the value.
|
boolean |
setVisible(boolean visible) |
void |
setWidth(String width)
|
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
addSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, invalidatePartial, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
public Detail getDetailChild()
public Grid getGrid()
public String getAlign()
Default: null (system default: left unless CSS specified).
public void setAlign(String align)
public boolean isNowrap()
Default: null (system default: wrap).
public void setNowrap(boolean nowrap)
public String getValign()
Default: null (system default: top).
public void setValign(String valign)
public boolean setVisible(boolean visible)
setVisible
in interface org.zkoss.zk.ui.Component
setVisible
in class org.zkoss.zk.ui.AbstractComponent
public <T> T getValue()
Default: null.
Note: the value is application dependent, you can place whatever value you want.
public <T> void setValue(T value)
value
- the value.
Note: the value is application dependent, you can place whatever value you want.
public String getSpans()
Cell
instead.Default: empty.
public void setSpans(String spans) throws org.zkoss.zk.ui.WrongValueException
Cell
instead.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.WrongValueException
public int getIndex()
Notice that the performance is not good if there are a lot of rows. Therefore, this method shall not be used with a huge grid.
public String getZclass()
getZclass
in class org.zkoss.zk.ui.HtmlBasedComponent
public Group getGroup()
public void setWidth(String width)
Grid
and Column
instead.setWidth
in class org.zkoss.zk.ui.HtmlBasedComponent
public void setHflex(String flex)
Grid
and Column
instead.setHflex
in class org.zkoss.zk.ui.HtmlBasedComponent
public String getSclass()
HtmlBasedComponent.setSclass(java.lang.String)
is called with non-empty value.getSclass
in class org.zkoss.zk.ui.HtmlBasedComponent
public void setStubonly(String stubonly)
setStubonly
in interface org.zkoss.zk.ui.Component
setStubonly
in class org.zkoss.zk.ui.AbstractComponent
public void setStubonly(boolean stubonly)
setStubonly
in interface org.zkoss.zk.ui.Component
setStubonly
in class org.zkoss.zk.ui.AbstractComponent
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws IOException
renderProperties
in class XulElement
IOException
public void beforeParentChanged(org.zkoss.zk.ui.Component parent)
beforeParentChanged
in interface org.zkoss.zk.ui.sys.ComponentCtrl
beforeParentChanged
in class org.zkoss.zk.ui.AbstractComponent
public void beforeChildAdded(org.zkoss.zk.ui.Component newChild, org.zkoss.zk.ui.Component refChild)
beforeChildAdded
in interface org.zkoss.zk.ui.sys.ComponentCtrl
beforeChildAdded
in class org.zkoss.zk.ui.AbstractComponent
public boolean insertBefore(org.zkoss.zk.ui.Component newChild, org.zkoss.zk.ui.Component refChild)
insertBefore
in interface org.zkoss.zk.ui.Component
insertBefore
in class org.zkoss.zk.ui.AbstractComponent
public void onChildRemoved(org.zkoss.zk.ui.Component child)
onChildRemoved
in interface org.zkoss.zk.ui.sys.ComponentCtrl
onChildRemoved
in class org.zkoss.zk.ui.AbstractComponent
public Object clone()
clone
in interface org.zkoss.zk.ui.Component
clone
in class XulElement
public Object getExtraCtrl()
getExtraCtrl
in interface org.zkoss.zk.ui.sys.ComponentCtrl
getExtraCtrl
in class org.zkoss.zk.ui.HtmlBasedComponent
Copyright © 2019. All rights reserved.