Package com.vaadin.client
Class PopStateHandler
- java.lang.Object
-
- com.vaadin.client.PopStateHandler
-
public class PopStateHandler extends Object
Handlespopstateevents and sends them to the server.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description PopStateHandler(Registry registry)Creates a newpopstatelistener for delivering events to the server.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind()Start listening topopstateevents and send them to the server.
-
-
-
Constructor Detail
-
PopStateHandler
public PopStateHandler(Registry registry)
Creates a newpopstatelistener for delivering events to the server. Ignores events caused by hash changes, e.g. when the page stays the same.If the UI is stopped when a
popstateevent occurs, performs a refresh to restart the UI.NOTE: the listening won't start before invoking
bind().- Parameters:
registry- the registry to bind to
-
-