|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.bind.tracker.impl.BindUiLifeCycle
public class BindUiLifeCycle
Track Binding CRUD and dependent tracking management.
| Nested Class Summary | |
|---|---|
static interface |
BindUiLifeCycle.Extension
An interface used to extend the BindUiLifeCycle. |
| Constructor Summary | |
|---|---|
BindUiLifeCycle()
|
|
| Method Summary | |
|---|---|
void |
afterComponentAttached(Component comp,
Page page)
Called after a component is attached to a page. |
void |
afterComponentDetached(Component comp,
Page prevpage)
Called after a component is detached from a page. |
void |
afterComponentMoved(Component parent,
Component child,
Component prevparent)
Called after the parent/children relation is changed. |
void |
afterPageAttached(Page page,
Desktop desktop)
Called after a page is attached to a desktop. |
void |
afterPageDetached(Page page,
Desktop prevdesktop)
Called after a page is detached to a desktop. |
void |
afterShadowAttached(ShadowElement shadow,
Component host)
Called after a shadow is attached to a host. |
void |
afterShadowDetached(ShadowElement shadow,
Component prevhost)
Called after a shadow is detached from a host. |
protected void |
handleComponentAttached(Component comp)
|
protected void |
handleComponentDetached(Component comp)
|
static void |
markLifeCycleHandling(Component comp)
Internal use only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BindUiLifeCycle()
| Method Detail |
|---|
public void afterComponentAttached(Component comp,
Page page)
UiLifeCycleIf a tree of components are attached to a page, this method called only against the root one. For example, if component A has a child B and A is attached to page P, then afterComponentAttached(A, P) is called.
Note: exception thrown by this method is ignored (but logged).
afterComponentAttached in interface UiLifeCycleprotected void handleComponentAttached(Component comp)
public void afterComponentDetached(Component comp,
Page prevpage)
UiLifeCycleIf a tree of components are detached to a page, this method called only against the root one. For example, if component A has a child B and A is detached from page P, then afterComponentDetached(A, P) is called.
Note: exception thrown by this method is ignored (but logged).
afterComponentDetached in interface UiLifeCycleprevpage - the previous page that comp belongs to.protected void handleComponentDetached(Component comp)
public void afterComponentMoved(Component parent,
Component child,
Component prevparent)
UiLifeCycleIf a tree of components has become children of the other component, this method called only against the root one. For example, if component A has a child B and A becomes a child of component C, then aferComponentAttached(C, A, null) is called.
Note: exception thrown by this method is ignored (but logged).
afterComponentMoved in interface UiLifeCycleprevparent - the previous parent. If it is the same as
parent, comp is moved in the same parent.
public void afterPageAttached(Page page,
Desktop desktop)
UiLifeCycleNote: exception thrown by this method is ignored (but logged).
afterPageAttached in interface UiLifeCycle
public void afterPageDetached(Page page,
Desktop prevdesktop)
UiLifeCycle
afterPageDetached in interface UiLifeCycle
public void afterShadowAttached(ShadowElement shadow,
Component host)
UiLifeCycleIf a tree of shadows are attached to a host, this method called only against the root one. For example, if shadow A has a child B and A is attached to host P, then afterShadowAttached(A, P) is called.
Note: exception thrown by this method is ignored (but logged).
afterShadowAttached in interface UiLifeCycle
public void afterShadowDetached(ShadowElement shadow,
Component prevhost)
UiLifeCycleIf a tree of shadows are detached to a host, this method called only against the root one. For example, if shadow A has a child B and A is detached from host P, then afterShadowDetached(A, P) is called.
Note: exception thrown by this method is ignored (but logged).
afterShadowDetached in interface UiLifeCycleprevhost - the previous host that shadow belongs to.public static void markLifeCycleHandling(Component comp)
#afterComponentAttached(Component, Page),
BindUiLifeCycle will not process it again.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||