public class Choose extends TemplateBasedShadowElement
When,
Otherwise,
Serialized FormHtmlShadowElement.DirectionAbstractComponent.Children_dirtyBinding, ON_BINDING_READY, SHADOW_VARIABLE_afterComposed, _dynamicValue, BIND_ANNO, BINDER, INIT_ANNO, LOAD_ANNO, ON_REBUILD_SHADOW_TREE_LATER, REFERENCE_ANNO, SAVE_ANNO, SKIP_DISTRIBUTED_CHILDREN_PROPERTY_CHANGEAPPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEAFTER_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 |
|---|
Choose() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeChildAdded(Component child,
Component refChild)
Default: does nothing.
|
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 java.util.Set<java.lang.String> |
getDynamicKeys() |
boolean |
isDynamicValue()
Returns whether the shadow element contains a dynamic value, it means the
shadow element cannot be destroyed after evaluated.
|
boolean |
isEffective()
Returns whether the shadow element is effective
|
void |
mergeSubTree()
Merge the all sub-tree into the parent's insertions, unlike
AbstractComponent.appendChild(Component) |
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.
|
void |
recreate()
Detaches all child components and then recreate them by use of
HtmlShadowElement.compose(org.zkoss.zk.ui.Component). |
addBindingListener, afterCompose, docheck0, isBindingReady, isDirtyBinding, onChildAdded, removeBindingListenerafterHostChildAdded, afterHostChildRemoved, asShadow, beforeHostChildAdded, beforeHostChildRemoved, beforeHostParentChanged, beforeParentChanged, clearChildren, getDistributedChildren, getFirstInsertion, getLastInsertion, getNextInsertion, getNextInsertionComponentIfAny, getPreviousInsertion, getPreviousInsertionComponentIfAny, getShadowHost, getShadowHostIfAny, inRange, invalidate, isDynamicValue, mergeToHost, onHostAttached, onHostChildAdded, onHostChildRemoved, onHostDetached, removeFromParent, resolveVariable, setDynamicValue, setParent, setPrevInsertion, setShadowHost, shrinkRange, stretchRange, toString, updateSubBindingAnnotationCountaddAnnotation, 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, willSerializeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinvalidatePartialpublic void beforeChildAdded(Component child, Component refChild)
AbstractComponentbeforeChildAdded in interface ComponentCtrlbeforeChildAdded in class HtmlShadowElementchild - the child to be added (never null).refChild - another child component that the new child
will be inserted before it. If null, the new child will be the
last child.ComponentCtrl.beforeChildAdded(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component)public void onChildRemoved(Component child)
AbstractComponentonChildRemoved in interface ComponentCtrlonChildRemoved in class TemplateBasedShadowElementComponentCtrl.onChildRemoved(org.zkoss.zk.ui.Component)protected void compose(Component host)
HtmlShadowElementHtmlShadowElement.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 TemplateBasedShadowElementhost - the shadow host component, never null.protected java.util.Set<java.lang.String> getDynamicKeys()
public boolean isEffective()
HtmlShadowElementisEffective in class TemplateBasedShadowElementprotected void rebuildSubShadowTree()
HtmlShadowElementrebuildSubShadowTree in class TemplateBasedShadowElementpublic boolean isDynamicValue()
ShadowElementCtrlisDynamicValue in interface ShadowElementCtrlisDynamicValue in class TemplateBasedShadowElementpublic void detach()
HtmlShadowElementdetach in interface Componentdetach in interface ShadowElementdetach in class TemplateBasedShadowElementpublic void mergeSubTree()
HtmlShadowElementAbstractComponent.appendChild(Component)mergeSubTree in class HtmlShadowElementpublic java.lang.Object clone()
Componentclone in interface Componentclone in class TemplateBasedShadowElementpublic void recreate()
HtmlShadowElementHtmlShadowElement.compose(org.zkoss.zk.ui.Component).recreate in interface ShadowElementrecreate in class HtmlShadowElementCopyright © 2005-2024 Potix Corporation. All Rights Reserved.