|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlShadowElement
org.zkoss.zuti.zul.TemplateBasedShadowElement
public abstract class TemplateBasedShadowElement
A template based skeleton class
| 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 | |
|---|---|
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 |
| 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 | |
|---|---|
TemplateBasedShadowElement()
|
|
| Method Summary | |
|---|---|
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 |
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: does nothing. |
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. |
protected void |
removeBindingListener()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public TemplateBasedShadowElement()
| Method Detail |
|---|
public void onChildRemoved(Component child)
AbstractComponent
onChildRemoved in interface ComponentCtrlonChildRemoved in class AbstractComponentComponentCtrl.onChildRemoved(org.zkoss.zk.ui.Component)public void onChildAdded(Component child)
AbstractComponent
onChildAdded in interface ComponentCtrlonChildAdded in class HtmlShadowElementComponentCtrl.onChildAdded(org.zkoss.zk.ui.Component)public void afterCompose()
HtmlShadowElementIf 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 AfterComposeafterCompose in class HtmlShadowElementpublic boolean isDynamicValue()
ShadowElementCtrl
isDynamicValue in interface ShadowElementCtrlisDynamicValue in class HtmlShadowElementprotected void rebuildSubShadowTree()
HtmlShadowElement
rebuildSubShadowTree in class HtmlShadowElementprotected 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 HtmlShadowElementhost - the shadow host component, never null.protected void addBindingListener()
protected void removeBindingListener()
public void detach()
HtmlShadowElement
detach in interface Componentdetach in interface ShadowElementdetach in class HtmlShadowElementprotected boolean isBindingReady()
HtmlShadowElement.recreate() method.
protected boolean isEffective()
HtmlShadowElement
isEffective in class HtmlShadowElementpublic java.lang.Object clone()
Component
clone in interface Componentclone in class HtmlShadowElementprotected void docheck0()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||