Interface PageLifecycleCallbackHub

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addPageAttachedCallback​(java.lang.Runnable callback)
      Adds a callback for when the page is attached to the request.
      void addPageDetachedCallback​(java.lang.Runnable callback)
      Adds a callback for when the page is detached from the request.
      void addPageLoadedCallback​(java.lang.Runnable callback)
      Adds a callback for when the page is first loaded.
      void addResetCallback​(java.lang.Runnable callback)
      A reset occurs when a request for a page arrives that did not originate on the same page.
      void addVerifyCallback​(java.lang.Runnable callback)
      Adds a verify callback, which is allowed while the page is loading.
    • Method Detail

      • addPageLoadedCallback

        void addPageLoadedCallback​(java.lang.Runnable callback)
        Adds a callback for when the page is first loaded. Callbacks are invoked in the order they are added to the page. They are invoked once and then discarded.
        Parameters:
        callback - invoked once, when page is first loaded
        Since:
        5.3.4
      • addPageAttachedCallback

        void addPageAttachedCallback​(java.lang.Runnable callback)
        Adds a callback for when the page is attached to the request.
        Parameters:
        callback -
        Since:
        5.3.4
      • addPageDetachedCallback

        void addPageDetachedCallback​(java.lang.Runnable callback)
        Adds a callback for when the page is detached from the request.
        Parameters:
        callback -
        Since:
        5.3.4
      • addVerifyCallback

        void addVerifyCallback​(java.lang.Runnable callback)
        Adds a verify callback, which is allowed while the page is loading. Such callbacks are invoked once, after the page has been loaded successfully, and are then discarded. This was added specifically to ensure that components only verify that required parameters are bound after all components and mixins of the page have had a chance to initialize.
        Parameters:
        callback - to be invoked after page loaded
        Since:
        5.3
      • addResetCallback

        void addResetCallback​(java.lang.Runnable callback)
        A reset occurs when a request for a page arrives that did not originate on the same page. This gives the application a chance to reset the state of the page.
        Parameters:
        callback - invoked when a page is activated by link from some other page.