public interface NavigationStateManager extends Serializable
Navigator
and the
browser location URI or other similar view identification and bookmarking
system. The state is limited to a single string because in the usual cases it
forms a part of a URI.
Different implementations can be created for hashbang URIs, HTML5 pushState, portlet URL navigation and other similar systems.
This interface is mostly for internal use by Navigator.
Modifier and Type | Method and Description |
---|---|
String |
getState()
Returns the current navigation state including view name and any optional
parameters.
|
void |
setNavigator(Navigator navigator)
Sets the Navigator used with this state manager.
|
void |
setState(String state)
Sets the current navigation state in the location URI or similar
location, including view name and any optional parameters.
|
String getState()
void setState(String state)
This method should be only called by a Navigator.
state
- new view and parameter string, not nullvoid setNavigator(Navigator navigator)
navigator.navigateTo(getState())
.
navigator
parameter value could be null if previously set
navigator is destroyed.
This method should only be called by a Navigator.
Copyright © 2018 Vaadin Ltd. All rights reserved.