|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UiLifeCycle
Used to intercept the life cycle of UI, such as Component
being attached.
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. |
Method Detail |
---|
void afterComponentAttached(Component comp, Page page)
If 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 aferComponentAttached(A, P) is called.
Note: exception thrown by this method is ignored (but logged).
void afterComponentDetached(Component comp, Page prevpage)
If 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 aferComponentDetached(A, P) is called.
Note: exception thrown by this method is ignored (but logged).
prevpage
- the previous page that comp belongs to.void afterComponentMoved(Component parent, Component child, Component prevparent)
If 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).
prevparent
- the previous parent. If it is the same as
parent, comp is moved in the same parent.void afterPageAttached(Page page, Desktop desktop)
Note: exception thrown by this method is ignored (but logged).
void afterPageDetached(Page page, Desktop prevdesktop)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |