Package org.zkoss.zul
Class Row
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Row
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.sys.ComponentCtrl
public class Row extends XulElement
A single row in aRowselement. Each child of theRowelement 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)- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classRow.ExtraCtrlA utility class to implementHtmlBasedComponent.getExtraCtrl().
-
Constructor Summary
Constructors Constructor Description Row()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbeforeChildAdded(org.zkoss.zk.ui.Component newChild, org.zkoss.zk.ui.Component refChild)voidbeforeParentChanged(org.zkoss.zk.ui.Component parent)java.lang.Objectclone()java.lang.StringgetAlign()Returns the horizontal alignment of the whole row.DetailgetDetailChild()Returns the child detail component.java.lang.ObjectgetExtraCtrl()GridgetGrid()Returns the grid that contains this row.GroupgetGroup()Returns the group that this row belongs to, or null.intgetIndex()Returns the index of the specified row.org.zkoss.zk.ui.sys.PropertyAccessgetPropertyAccess(java.lang.String prop)java.lang.StringgetSclass()Returns the style class.java.lang.StringgetValign()Returns the vertical alignment of the whole row.<T> TgetValue()Returns the value.java.lang.StringgetZclass()booleaninsertBefore(org.zkoss.zk.ui.Component newChild, org.zkoss.zk.ui.Component refChild)booleanisNowrap()Returns the nowrap.voidonChildRemoved(org.zkoss.zk.ui.Component child)protected voidrenderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)voidsetAlign(java.lang.String align)Sets the horizontal alignment of the whole row.voidsetHflex(java.lang.String flex)Deprecated.as of release 6.0.0.voidsetNowrap(boolean nowrap)Sets the nowrap.voidsetStubonly(boolean stubonly)Deprecated.as of release 7.0.3.voidsetStubonly(java.lang.String stubonly)Deprecated.as of release 7.0.3.voidsetValign(java.lang.String valign)Sets the vertical alignment of the whole row.<T> voidsetValue(T value)Sets the value.booleansetVisible(boolean visible)voidsetWidth(java.lang.String width)Deprecated.as of release 6.0.0.-
Methods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setClientAction, 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
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, destroyIndexCacheMap, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, disableHostChanged, enableBindingAnnotation, enableHostChanged, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, 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, getForwards, getId, getIndexCacheMap, getLastChild, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, initIndexCacheMap, invalidate, isChildable, isDisabledHostChanged, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onPageDetached, onParentChanged, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, renderPropertiesOnly, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
-
-
-
Method Detail
-
getDetailChild
public Detail getDetailChild()
Returns the child detail component.- Since:
- 3.5.0
-
getGrid
public Grid getGrid()
Returns the grid that contains this row.
-
getAlign
public java.lang.String getAlign()
Returns the horizontal alignment of the whole row.Default: null (system default: left unless CSS specified).
-
setAlign
public void setAlign(java.lang.String align)
Sets the horizontal alignment of the whole row. Allowed values: right, left, center, justify, char
-
isNowrap
public boolean isNowrap()
Returns the nowrap.Default: false (system default: wrap).
-
setNowrap
public void setNowrap(boolean nowrap)
Sets the nowrap.
-
getValign
public java.lang.String getValign()
Returns the vertical alignment of the whole row.Default: null (system default: top).
-
setValign
public void setValign(java.lang.String valign)
Sets the vertical alignment of the whole row. Allowed values: top, middle, bottom, baseline
-
setVisible
public boolean setVisible(boolean visible)
- Specified by:
setVisiblein interfaceorg.zkoss.zk.ui.Component- Overrides:
setVisiblein classorg.zkoss.zk.ui.AbstractComponent
-
getValue
public <T> T getValue()
Returns the value.Default: null.
Note: the value is application dependent, you can place whatever value you want.
-
setValue
public <T> void setValue(T value)
Sets the value.- Parameters:
value- the value.Note: the value is application dependent, you can place whatever value you want.
-
getIndex
public int getIndex()
Returns the index of the specified row.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.
- Since:
- 6.0.0
-
getZclass
public java.lang.String getZclass()
- Overrides:
getZclassin classorg.zkoss.zk.ui.HtmlBasedComponent
-
getGroup
public Group getGroup()
Returns the group that this row belongs to, or null.- Since:
- 3.5.0
-
setWidth
public void setWidth(java.lang.String width)
Deprecated.- Overrides:
setWidthin classorg.zkoss.zk.ui.HtmlBasedComponent
-
setHflex
public void setHflex(java.lang.String flex)
Deprecated.- Overrides:
setHflexin classorg.zkoss.zk.ui.HtmlBasedComponent
-
getSclass
public java.lang.String getSclass()
Returns the style class. By default, it is the same as grid's stye class, unlessHtmlBasedComponent.setSclass(java.lang.String)is called with non-empty value.- Overrides:
getSclassin classorg.zkoss.zk.ui.HtmlBasedComponent
-
setStubonly
public void setStubonly(java.lang.String stubonly)
Deprecated.as of release 7.0.3.- Specified by:
setStubonlyin interfaceorg.zkoss.zk.ui.Component- Overrides:
setStubonlyin classorg.zkoss.zk.ui.AbstractComponent
-
setStubonly
public void setStubonly(boolean stubonly)
Deprecated.as of release 7.0.3.- Specified by:
setStubonlyin interfaceorg.zkoss.zk.ui.Component- Overrides:
setStubonlyin classorg.zkoss.zk.ui.AbstractComponent
-
renderProperties
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException- Overrides:
renderPropertiesin classXulElement- Throws:
java.io.IOException
-
getPropertyAccess
public org.zkoss.zk.ui.sys.PropertyAccess getPropertyAccess(java.lang.String prop)
- Specified by:
getPropertyAccessin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
getPropertyAccessin classXulElement
-
beforeParentChanged
public void beforeParentChanged(org.zkoss.zk.ui.Component parent)
- Specified by:
beforeParentChangedin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
beforeParentChangedin classorg.zkoss.zk.ui.AbstractComponent
-
beforeChildAdded
public void beforeChildAdded(org.zkoss.zk.ui.Component newChild, org.zkoss.zk.ui.Component refChild)- Specified by:
beforeChildAddedin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
beforeChildAddedin classorg.zkoss.zk.ui.AbstractComponent
-
insertBefore
public boolean insertBefore(org.zkoss.zk.ui.Component newChild, org.zkoss.zk.ui.Component refChild)- Specified by:
insertBeforein interfaceorg.zkoss.zk.ui.Component- Overrides:
insertBeforein classorg.zkoss.zk.ui.AbstractComponent
-
onChildRemoved
public void onChildRemoved(org.zkoss.zk.ui.Component child)
- Specified by:
onChildRemovedin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
onChildRemovedin classorg.zkoss.zk.ui.AbstractComponent
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceorg.zkoss.zk.ui.Component- Overrides:
clonein classXulElement
-
getExtraCtrl
public java.lang.Object getExtraCtrl()
- Specified by:
getExtraCtrlin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
getExtraCtrlin classorg.zkoss.zk.ui.HtmlBasedComponent
-
-