|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageLifecycleCallbackHub
Defines a way for different aspects of a page to add callbacks for important lifecycle events.
ComponentResources.getPageLifecycleCallbackHub()
Method Summary | |
---|---|
void |
addPageAttachedCallback(Runnable callback)
Adds a callback for when the page is attached to the request. |
void |
addPageDetachedCallback(Runnable callback)
Adds a callback for when the page is detached from the request. |
void |
addPageLoadedCallback(Runnable callback)
Adds a callback for when the page is first loaded. |
void |
addResetCallback(Runnable callback)
A reset occurs when a request for a page arrives that did not originate on the same page. |
void |
addVerifyCallback(Runnable callback)
Adds a verify callback, which is allowed while the page is loading. |
Method Detail |
---|
void addPageLoadedCallback(Runnable callback)
callback
- invoked once, when page is first loadedvoid addPageAttachedCallback(Runnable callback)
callback
- void addPageDetachedCallback(Runnable callback)
callback
- void addVerifyCallback(Runnable callback)
callback
- to be invoked after page loadedvoid addResetCallback(Runnable callback)
callback
- invoked when a page is activated by link from some other page.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |