Package org.zkoss.zul
Class Rows
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Rows
-
- 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 Rows extends XulElement
Defines the rows of a grid. Each child of a rows element should be aRow
element.Default
getZclass()
: z-rows.(since 3.5.0)- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
Rows.Children
protected class
Rows.ExtraCtrl
A utility class to implementHtmlBasedComponent.getExtraCtrl()
.
-
Constructor Summary
Constructors Constructor Description Rows()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
afterInsert(org.zkoss.zk.ui.Component comp)
Callback if a child has been inserted.void
beforeChildAdded(org.zkoss.zk.ui.Component child, org.zkoss.zk.ui.Component refChild)
void
beforeParentChanged(org.zkoss.zk.ui.Component parent)
protected void
beforeRemove(org.zkoss.zk.ui.Component comp)
Callback if a child will be removed (not removed yet).java.lang.Object
clone()
<T extends org.zkoss.zk.ui.Component>
java.util.List<T>getChildren()
java.lang.Object
getExtraCtrl()
Grid
getGrid()
Returns the grid that contains this rows.int
getGroupCount()
Returns the number of groups.java.util.List<Group>
getGroups()
Returns a list of allGroup
.int
getVisibleItemCount()
Returns the number of visible descendantRow
.java.lang.String
getZclass()
boolean
hasGroup()
Returns whether Group exists.boolean
insertBefore(org.zkoss.zk.ui.Component child, org.zkoss.zk.ui.Component refChild)
boolean
removeChild(org.zkoss.zk.ui.Component child)
If the child is a group, its groupfoot will be removed at the same time.protected void
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
void
setHflex(java.lang.String flex)
Deprecated.as of release 6.0.0.void
setWidth(java.lang.String width)
Deprecated.as of release 6.0.0.-
Methods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, 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, getSclass, 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, 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, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getForwards, getId, getIndexCacheMap, 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, initIndexCacheMap, invalidate, invalidatePartial, isChildable, isDisabledHostChanged, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onParentChanged, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, 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, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
-
-
-
Method Detail
-
getGrid
public Grid getGrid()
Returns the grid that contains this rows.It is the same as
AbstractComponent.getParent()
.
-
getGroupCount
public int getGroupCount()
Returns the number of groups.- Since:
- 3.5.0
-
hasGroup
public boolean hasGroup()
Returns whether Group exists.- Since:
- 3.5.0
-
getVisibleItemCount
public int getVisibleItemCount()
Returns the number of visible descendantRow
.- Since:
- 3.5.1
-
beforeParentChanged
public void beforeParentChanged(org.zkoss.zk.ui.Component parent)
- Specified by:
beforeParentChanged
in interfaceorg.zkoss.zk.ui.sys.ComponentCtrl
- Overrides:
beforeParentChanged
in classorg.zkoss.zk.ui.AbstractComponent
-
beforeChildAdded
public void beforeChildAdded(org.zkoss.zk.ui.Component child, org.zkoss.zk.ui.Component refChild)
- Specified by:
beforeChildAdded
in interfaceorg.zkoss.zk.ui.sys.ComponentCtrl
- Overrides:
beforeChildAdded
in classorg.zkoss.zk.ui.AbstractComponent
-
insertBefore
public boolean insertBefore(org.zkoss.zk.ui.Component child, org.zkoss.zk.ui.Component refChild)
- Specified by:
insertBefore
in interfaceorg.zkoss.zk.ui.Component
- Overrides:
insertBefore
in classorg.zkoss.zk.ui.AbstractComponent
-
removeChild
public boolean removeChild(org.zkoss.zk.ui.Component child)
If the child is a group, its groupfoot will be removed at the same time.- Specified by:
removeChild
in interfaceorg.zkoss.zk.ui.Component
- Overrides:
removeChild
in classorg.zkoss.zk.ui.AbstractComponent
-
afterInsert
protected void afterInsert(org.zkoss.zk.ui.Component comp)
Callback if a child has been inserted.Default: invalidate if it is the paging mold and it affects the view of the active page.
- Since:
- 3.0.5
-
beforeRemove
protected void beforeRemove(org.zkoss.zk.ui.Component comp)
Callback if a child will be removed (not removed yet).Default: invalidate if it is the paging mold and it affects the view of the active page.
- Since:
- 3.0.5
-
getZclass
public java.lang.String getZclass()
- Overrides:
getZclass
in classorg.zkoss.zk.ui.HtmlBasedComponent
-
setWidth
public void setWidth(java.lang.String width)
Deprecated.- Overrides:
setWidth
in classorg.zkoss.zk.ui.HtmlBasedComponent
-
setHflex
public void setHflex(java.lang.String flex)
Deprecated.- Overrides:
setHflex
in classorg.zkoss.zk.ui.HtmlBasedComponent
-
clone
public java.lang.Object clone()
- Specified by:
clone
in interfaceorg.zkoss.zk.ui.Component
- Overrides:
clone
in classXulElement
-
getChildren
public <T extends org.zkoss.zk.ui.Component> java.util.List<T> getChildren()
- Specified by:
getChildren
in interfaceorg.zkoss.zk.ui.Component
- Overrides:
getChildren
in classorg.zkoss.zk.ui.AbstractComponent
-
renderProperties
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException
- Overrides:
renderProperties
in classXulElement
- Throws:
java.io.IOException
-
getExtraCtrl
public java.lang.Object getExtraCtrl()
- Specified by:
getExtraCtrl
in interfaceorg.zkoss.zk.ui.sys.ComponentCtrl
- Overrides:
getExtraCtrl
in classorg.zkoss.zk.ui.HtmlBasedComponent
-
-