org.zkoss.zul
Class Row

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.zul.Row
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.sys.ComponentCtrl

public class Row
extends XulElement

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.

Author:
tomyeh
See Also:
Serialized Form

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

Row

public Row()
Method Detail

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.


isNowrap

public boolean isNowrap()
Returns the nowrap.

Default: null (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.


getValue

public java.lang.Object getValue()
Returns the value.

Default: null.

Note: the value is application dependent, you can place whatever value you want.


setValue

public void setValue(java.lang.Object value)
Sets the value.

Parameters:
value - the value.

Note: the value is application dependent, you can place whatever value you want.


getSpans

public java.lang.String getSpans()
Returns the spans, which is a list of numbers separated by comma.

Default: empty.


setSpans

public void setSpans(java.lang.String spans)
              throws org.zkoss.zk.ui.WrongValueException
Sets the spans, which is a list of numbers separated by comma.

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.

Throws:
org.zkoss.zk.ui.WrongValueException

getChildAttrs

public java.lang.String getChildAttrs(int index)
Returns the HTML attributes for the child of the specified index.


getRealStyleFlags

protected int getRealStyleFlags()
Overrides:
getRealStyleFlags in class org.zkoss.zk.ui.HtmlBasedComponent

getOuterAttrs

public java.lang.String getOuterAttrs()
Overrides:
getOuterAttrs in class XulElement

setStyle

public void setStyle(java.lang.String style)
Overrides:
setStyle in class org.zkoss.zk.ui.HtmlBasedComponent

setSclass

public void setSclass(java.lang.String sclass)
Overrides:
setSclass in class org.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, unless setSclass(java.lang.String) is called with non-empty value.

Overrides:
getSclass in class org.zkoss.zk.ui.HtmlBasedComponent

setParent

public void setParent(org.zkoss.zk.ui.Component parent)
Specified by:
setParent in interface org.zkoss.zk.ui.Component
Overrides:
setParent in class org.zkoss.zk.ui.AbstractComponent

onDrawNewChild

public void onDrawNewChild(org.zkoss.zk.ui.Component child,
                           java.lang.StringBuffer out)
                    throws java.io.IOException
Specified by:
onDrawNewChild in interface org.zkoss.zk.ui.Component
Overrides:
onDrawNewChild in class org.zkoss.zk.ui.AbstractComponent
Throws:
java.io.IOException


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.