Package org.zkoss.zk.ui.event

## Class HistoryPopStateEvent

- java.lang.Object
- - org.zkoss.zk.ui.event.Event
  - - org.zkoss.zk.ui.event.HistoryPopStateEvent

- All Implemented Interfaces:
    `java.io.Serializable`

      public class HistoryPopStateEvent
      extends Event

  The history pop state event used with `onHistoryPopState` to notify that user pressed BACK, FORWARD or others that causes the history changed (but still in the same desktop).

  All root components of all pages of the desktop will receives this event.

  Since:
    8.5.0
  Author:
    rudyhuang
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `HistoryPopStateEvent​(java.lang.String name, java.lang.Object state)` |
    `HistoryPopStateEvent​(java.lang.String name, java.lang.Object state, java.lang.String url)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static HistoryPopStateEvent` | `getHistoryPopStateEvent​(AuRequest request)` | Converts an AU request to a history pop state event.
    `java.lang.Object` | `getState()` | Returns the state object.
    `java.lang.String` | `getUrl()` | Returns the URL.

    - ### Methods inherited from class org.zkoss.zk.ui.event.Event

      `getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### HistoryPopStateEvent

          public HistoryPopStateEvent​(java.lang.String name,
                                      java.lang.Object state)

    - #### HistoryPopStateEvent

          public HistoryPopStateEvent​(java.lang.String name,
                                      java.lang.Object state,
                                      java.lang.String url)

  - ### Method Detail

    - #### getHistoryPopStateEvent

          public static HistoryPopStateEvent getHistoryPopStateEvent​(AuRequest request)

      Converts an AU request to a history pop state event.

    - #### getState

          public java.lang.Object getState()

      Returns the state object.
      Returns:
        the state object.

    - #### getUrl

          public java.lang.String getUrl()

      Returns the URL.
      Returns:
        the URL.