public abstract class TemplateBasedShadowElement extends HtmlShadowElement
HtmlShadowElement.Direction
AbstractComponent.Children
Modifier and Type | Field and Description |
---|---|
protected boolean |
_dirtyBinding |
static java.lang.String |
FOREACH_RENDERED_COMPONENTS
foreach support list model (Component developer use only)
|
static java.lang.String |
ON_BINDING_READY
Component developer use only
|
static java.lang.String |
SHADOW_VARIABLE
Component developer use only
|
_afterComposed, _dynamicValue, BIND_ANNO, BINDER, INIT_ANNO, LOAD_ANNO, ON_REBUILD_SHADOW_TREE_LATER, REFERENCE_ANNO, SAVE_ANNO, SKIP_DISTRIBUTED_CHILDREN_PROPERTY_CHANGE
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 |
---|
TemplateBasedShadowElement() |
Modifier and Type | Method and Description |
---|---|
protected void |
addBindingListener() |
void |
afterCompose()
Creates the distributed children after apply dynamic properties
If a shadow element is created by ZK loader, this method is invoked
automatically.
|
java.lang.Object |
clone()
Clones the component.
|
protected void |
compose(Component host)
Composes the shadow element.
|
void |
detach()
Removes the relation points between shadow host and this shadow element.
|
protected void |
docheck0() |
protected boolean |
isBindingReady()
Returns the current phase is in a binding ready state, if any.
|
boolean |
isDirtyBinding()
Internal used only
|
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 |
onChildAdded(Component child)
Default: handles special event listeners.
|
void |
onChildRemoved(Component child)
Default: handles special event listeners.
|
protected void |
rebuildSubShadowTree()
Rebuilds the shadow tree if the shadow element contains a dynamic value,
it should be alive, otherwise, it will be detached.
|
protected void |
removeBindingListener() |
afterHostChildAdded, afterHostChildRemoved, asShadow, beforeChildAdded, beforeHostChildAdded, beforeHostChildRemoved, beforeHostParentChanged, beforeParentChanged, clearChildren, getDistributedChildren, getFirstInsertion, getLastInsertion, getNextInsertion, getNextInsertionComponentIfAny, getPreviousInsertion, getPreviousInsertionComponentIfAny, getShadowHost, getShadowHostIfAny, inRange, invalidate, isDynamicValue, mergeSubTree, mergeToHost, onHostAttached, onHostChildAdded, onHostChildRemoved, onHostDetached, recreate, removeFromParent, 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, 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, getPropertyAccess, 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, invalidatePartial, isChildable, isInitialized, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invalidatePartial
public static java.lang.String ON_BINDING_READY
public static java.lang.String SHADOW_VARIABLE
public static final java.lang.String FOREACH_RENDERED_COMPONENTS
protected boolean _dirtyBinding
public void onChildRemoved(Component child)
AbstractComponent
onChildRemoved
in interface ComponentCtrl
onChildRemoved
in class AbstractComponent
ComponentCtrl.onChildRemoved(org.zkoss.zk.ui.Component)
public void onChildAdded(Component child)
AbstractComponent
onChildAdded
in interface ComponentCtrl
onChildAdded
in class HtmlShadowElement
ComponentCtrl.onChildAdded(org.zkoss.zk.ui.Component)
public void afterCompose()
HtmlShadowElement
If a shadow element is created by ZK loader, this method is invoked automatically. Developers rarely need to invoke this method.
Default: it invokes HtmlShadowElement.compose(org.zkoss.zk.ui.Component)
to compose the shadow element.
The method will invoke the following methods in order.
HtmlShadowElement.isEffective()
to be true.HtmlShadowElement.compose(org.zkoss.zk.ui.Component)
method to create the distributed
children, otherwise, nothing happened.
Instead of overriding this method, it is suggested to override
HtmlShadowElement.compose(org.zkoss.zk.ui.Component)
, since all other methods depend on HtmlShadowElement.compose(org.zkoss.zk.ui.Component)
(rather than HtmlShadowElement.afterCompose()
).
afterCompose
in interface AfterCompose
afterCompose
in class HtmlShadowElement
public boolean isDynamicValue()
ShadowElementCtrl
isDynamicValue
in interface ShadowElementCtrl
isDynamicValue
in class HtmlShadowElement
protected void rebuildSubShadowTree()
HtmlShadowElement
rebuildSubShadowTree
in class HtmlShadowElement
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 HtmlShadowElement
host
- the shadow host component, never null.protected void addBindingListener()
protected void removeBindingListener()
public void detach()
HtmlShadowElement
detach
in interface Component
detach
in interface ShadowElement
detach
in class HtmlShadowElement
protected boolean isBindingReady()
HtmlShadowElement.recreate()
method.protected boolean isEffective()
HtmlShadowElement
isEffective
in class HtmlShadowElement
public java.lang.Object clone()
Component
clone
in interface Component
clone
in class HtmlShadowElement
protected void docheck0()
public boolean isDirtyBinding()
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.