Class BindUiLifeCycle
- All Implemented Interfaces:
UiLifeCycle
- Since:
- 6.0.0
- Author:
- henrichen, jumperchen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface used to extend theBindUiLifeCycle. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterComponentAttached(Component comp, Page page) Called after a component is attached to a page.voidafterComponentDetached(Component comp, Page prevpage) Called after a component is detached from a page.voidafterComponentMoved(Component parent, Component child, Component prevparent) Called after the parent/children relation is changed.voidafterPageAttached(Page page, Desktop desktop) Called after a page is attached to a desktop.voidafterPageDetached(Page page, Desktop prevdesktop) Called after a page is detached to a desktop.voidafterShadowAttached(ShadowElement shadow, Component host) Called after a shadow is attached to a host.voidafterShadowDetached(ShadowElement shadow, Component prevhost) Called after a shadow is detached from a host.protected voidprotected voidstatic voidInternal use only.
-
Field Details
-
ON_ZKBIND_LATER
- See Also:
-
REMOVE_MARK
- See Also:
-
SKIP_BIND_INIT
- See Also:
-
-
Constructor Details
-
BindUiLifeCycle
public BindUiLifeCycle()
-
-
Method Details
-
afterComponentAttached
Description copied from interface:UiLifeCycleCalled after a component is attached to a 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 afterComponentAttached(A, P) is called.
Note: exception thrown by this method is ignored (but logged).
- Specified by:
afterComponentAttachedin interfaceUiLifeCycle
-
handleComponentAttached
-
afterComponentDetached
Description copied from interface:UiLifeCycleCalled after a component is detached from a page.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 afterComponentDetached(A, P) is called.
Note: exception thrown by this method is ignored (but logged).
- Specified by:
afterComponentDetachedin interfaceUiLifeCycleprevpage- the previous page that comp belongs to.
-
handleComponentDetached
-
afterComponentMoved
Description copied from interface:UiLifeCycleCalled after the parent/children relation is changed.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).
- Specified by:
afterComponentMovedin interfaceUiLifeCycleprevparent- the previous parent. If it is the same as parent, comp is moved in the same parent.
-
afterPageAttached
Description copied from interface:UiLifeCycleCalled after a page is attached to a desktop.Note: exception thrown by this method is ignored (but logged).
- Specified by:
afterPageAttachedin interfaceUiLifeCycle
-
afterPageDetached
Description copied from interface:UiLifeCycleCalled after a page is detached to a desktop.- Specified by:
afterPageDetachedin interfaceUiLifeCycle
-
afterShadowAttached
Description copied from interface:UiLifeCycleCalled after a shadow is attached to a host.If 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).
- Specified by:
afterShadowAttachedin interfaceUiLifeCycle
-
afterShadowDetached
Description copied from interface:UiLifeCycleCalled after a shadow is detached from a host.If 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).
- Specified by:
afterShadowDetachedin interfaceUiLifeCycleprevhost- the previous host that shadow belongs to.
-
markLifeCycleHandling
Internal use only. Mark a component and it's children are handling already in current execution. So, if the component attach to component tree(cause#afterComponentAttached(Component, Page), BindUiLifeCycle will not process it again.
-