Class Page.PopStateEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Page

    public static class Page.PopStateEvent
    extends java.util.EventObject
    Event fired when the URI of a Page changes (aka HTML 5 popstate event) on the client side due to browsers back/forward functionality.
    Since:
    8.0
    See Also:
    Page.addPopStateListener(PopStateListener), Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      PopStateEvent​(Page source, java.lang.String uri)
      Creates a new instance of PopstateEvent.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Page getPage()
      Gets the page in which the uri has changed.
      java.lang.String getUri()
      Get the new URI.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PopStateEvent

        public PopStateEvent​(Page source,
                             java.lang.String uri)
        Creates a new instance of PopstateEvent.
        Parameters:
        source - the Source of the event.
        uri - the new uri
    • Method Detail

      • getPage

        public Page getPage()
        Gets the page in which the uri has changed.
        Returns:
        the page in which the uri has changed
      • getUri

        public java.lang.String getUri()
        Get the new URI.
        Returns:
        the new uri