|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zk.ui.HtmlShadowElement org.zkoss.zuti.zul.TemplateBasedShadowElement org.zkoss.zuti.zul.Choose
public class Choose
The choose tag works like a Java switch statement in that it lets you choose between a number of alternatives. Where the switch statement has case statements, the choose tag has when tags. A a switch statement has default clause to specify a default action and similar way choose has otherwise as default clause.
When
,
Otherwise
,
Serialized FormNested 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 | |
---|---|
Choose()
|
Method Summary | |
---|---|
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 |
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: does nothing. |
protected void |
rebuildSubShadowTree()
Rebuilds the shadow tree if the shadow element contains a dynamic value, it should be alive, otherwise, it will be detached. |
Methods inherited from class org.zkoss.zuti.zul.TemplateBasedShadowElement |
---|
addBindingListener, afterCompose, docheck0, isBindingReady, isDynamicValue, onChildAdded, removeBindingListener |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Choose()
Method Detail |
---|
public void beforeChildAdded(Component child, Component refChild)
AbstractComponent
beforeChildAdded
in interface ComponentCtrl
beforeChildAdded
in class HtmlShadowElement
child
- 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)
AbstractComponent
onChildRemoved
in interface ComponentCtrl
onChildRemoved
in class TemplateBasedShadowElement
ComponentCtrl.onChildRemoved(org.zkoss.zk.ui.Component)
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.protected java.util.Set<java.lang.String> getDynamicKeys()
public boolean isEffective()
HtmlShadowElement
isEffective
in class TemplateBasedShadowElement
protected void rebuildSubShadowTree()
HtmlShadowElement
rebuildSubShadowTree
in class TemplateBasedShadowElement
public void detach()
HtmlShadowElement
detach
in interface Component
detach
in interface ShadowElement
detach
in class TemplateBasedShadowElement
public void mergeSubTree()
HtmlShadowElement
AbstractComponent.appendChild(Component)
mergeSubTree
in class HtmlShadowElement
public java.lang.Object clone()
Component
clone
in interface Component
clone
in class TemplateBasedShadowElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |