public class ForEach extends TemplateBasedShadowElement
HtmlShadowElement.Direction
AbstractComponent.Children
Modifier and Type | Field and Description |
---|---|
protected ForEachListDataListener |
_dataListener |
_dirtyBinding, FOREACH_RENDERED_COMPONENTS, ON_BINDING_READY, SHADOW_VARIABLE
_afterComposed, _dynamicValue, BIND_ANNO, BINDER, INIT_ANNO, LOAD_ANNO, ON_REBUILD_SHADOW_TREE_LATER, REFERENCE_ANNO, SAVE_ANNO
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
Constructor and Description |
---|
ForEach() |
Modifier and Type | Method and Description |
---|---|
protected void |
compose(Component host)
Composes the shadow element.
|
int |
getBegin() |
ForEachConverter |
getDataConverter() |
int |
getEnd() |
java.lang.Object |
getItems() |
PropertyAccess |
getPropertyAccess(java.lang.String prop)
Returns the corresponding property access object from the given property
name, if any.
|
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 |
removeFromParent() |
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) |
addBindingListener, afterCompose, clone, detach, docheck0, isBindingReady, onChildAdded, onChildRemoved, rebuildSubShadowTree, removeBindingListener
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, setDynamicValue, setParent, setPrevInsertion, setShadowHost, shrinkRange, stretchRange, toString, updateSubBindingAnnotationCount
addAnnotation, addAnnotation, addCallback, 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, getCallback, getChildren, getClientAttribute, getClientDataAttribute, 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, 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, insertBefore, isChildable, isInvalidated, isListenerAvailable, isVisible, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, 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, setClientDataAttribute, 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
protected ForEachListDataListener _dataListener
public void setItems(java.lang.Object items)
public java.lang.Object getItems()
public void setBegin(int begin)
public int getBegin()
public void setEnd(int end)
public int getEnd()
public void setStep(int step)
public int getStep()
public void setVar(java.lang.String var)
public java.lang.String getVar()
public void setVarStatus(java.lang.String varStatus)
public java.lang.String getVarStatus()
public ForEachConverter getDataConverter()
protected boolean isEffective()
HtmlShadowElement
isEffective
in class TemplateBasedShadowElement
protected void compose(Component host)
HtmlShadowElement
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.
compose
in class TemplateBasedShadowElement
host
- the shadow host component, never null.public boolean isDynamicValue()
ShadowElementCtrl
isDynamicValue
in interface ShadowElementCtrl
isDynamicValue
in class TemplateBasedShadowElement
public PropertyAccess getPropertyAccess(java.lang.String prop)
ComponentCtrl
getPropertyAccess
in interface ComponentCtrl
getPropertyAccess
in class AbstractComponent
prop
- the name of the propertypublic void removeFromParent()
removeFromParent
in class HtmlShadowElement
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.