org.zkoss.zuti.zul
Class ForEach

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlShadowElement
          extended by org.zkoss.zuti.zul.TemplateBasedShadowElement
              extended by org.zkoss.zuti.zul.ForEach
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Component, AfterCompose, Scope, ShadowElement, ShadowElementCtrl, ComponentCtrl

public class ForEach
extends TemplateBasedShadowElement

The basic iteration tag, accepting many different collection types and supporting sub-setting and other functionality like JSTL's forEach

Since:
8.0.0
Author:
jumperchen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlShadowElement
HtmlShadowElement.Direction
 
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
AbstractComponent.Children
 
Field Summary
 
Fields inherited from class org.zkoss.zuti.zul.TemplateBasedShadowElement
_dirtyBinding, FOREACH_RENDERED_COMPONENTS, ON_BINDING_READY, SHADOW_VARIABLE
 
Fields inherited from class org.zkoss.zk.ui.HtmlShadowElement
_afterComposed, BIND_ANNO, BINDER, INIT_ANNO, LOAD_ANNO, ON_REBUILD_SHADOW_TREE_LATER, REFERENCE_ANNO, SAVE_ANNO
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
 
Constructor Summary
ForEach()
           
 
Method Summary
protected  void compose(Component host)
          Composes the shadow element.
 int getBegin()
           
 ForEachConverter getDataConverter()
           
 int getEnd()
           
 java.lang.Object getItems()
           
 int getStep()
           
 java.lang.String getVar()
           
 java.lang.String getVarStatus()
           
 boolean isDynamicValue()
          Returns whether the shadow element contains a dynamic value, it means the shadow element cannot be destroyed after evaluated.
protected  boolean isEffective()
          Returns whether the shadow element is effective
 void setBegin(int begin)
           
 void setEnd(int end)
           
 void setItems(java.lang.Object items)
           
 void setStep(int step)
           
 void setVar(java.lang.String var)
           
 void setVarStatus(java.lang.String varStatus)
           
 
Methods inherited from class org.zkoss.zuti.zul.TemplateBasedShadowElement
addBindingListener, afterCompose, clone, detach, docheck0, isBindingReady, onChildAdded, onChildRemoved, rebuildSubShadowTree, removeBindingListener
 
Methods inherited from class org.zkoss.zk.ui.HtmlShadowElement
afterHostChildAdded, afterHostChildRemoved, asShadow, beforeChildAdded, beforeHostChildAdded, beforeHostChildRemoved, beforeHostParentChanged, beforeParentChanged, getDistributedChildren, getFirstInsertion, getLastInsertion, getNextInsertion, getNextInsertionComponentIfAny, getPreviousInsertion, getPreviousInsertionComponentIfAny, getShadowHost, getShadowHostIfAny, inRange, invalidate, isDynamicValue, mergeSubTree, mergeToHost, onHostAttached, onHostChildAdded, onHostChildRemoved, onHostDetached, recreate, resolveVariable, setParent, setPrevInsertion, setShadowHost, shrinkRange, stretchRange, toString, updateSubBindingAnnotationCount
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getExtraCtrl, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowRoots, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, isChildable, isInvalidated, isListenerAvailable, isVisible, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, renderProperties, replace, response, response, response, service, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, updateByClient, willPassivate, willPassivate, willSerialize, willSerialize
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForEach

public ForEach()
Method Detail

setItems

public void setItems(java.lang.Object items)

getItems

public java.lang.Object getItems()

setBegin

public void setBegin(int begin)

getBegin

public int getBegin()

setEnd

public void setEnd(int end)

getEnd

public int getEnd()

setStep

public void setStep(int step)

getStep

public int getStep()

setVar

public void setVar(java.lang.String var)

getVar

public java.lang.String getVar()

setVarStatus

public void setVarStatus(java.lang.String varStatus)

getVarStatus

public java.lang.String getVarStatus()

getDataConverter

public ForEachConverter getDataConverter()

isEffective

protected boolean isEffective()
Description copied from class: HtmlShadowElement
Returns whether the shadow element is effective

Overrides:
isEffective in class TemplateBasedShadowElement

compose

protected void compose(Component host)
Description copied from class: HtmlShadowElement
Composes the shadow element. It is called by HtmlShadowElement.afterCompose() if the shadow host is not null. Otherwise, it will skip this method call.

The second invocation is ignored. If you want to recreate child components, use HtmlShadowElement.recreate() instead.

Overrides:
compose in class TemplateBasedShadowElement
Parameters:
host - the shadow host component, never null.

isDynamicValue

public boolean isDynamicValue()
Description copied from interface: ShadowElementCtrl
Returns whether the shadow element contains a dynamic value, it means the shadow element cannot be destroyed after evaluated.

Specified by:
isDynamicValue in interface ShadowElementCtrl
Overrides:
isDynamicValue in class TemplateBasedShadowElement


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo