|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NavigationStateManager
An interface for handling interaction between 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.
Method Summary | |
---|---|
java.lang.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(java.lang.String state)
Sets the current navigation state in the location URI or similar location, including view name and any optional parameters. |
Method Detail |
---|
java.lang.String getState()
void setState(java.lang.String state)
This method should be only called by a Navigator.
fragment
- new view and parameter string, not nullvoid setNavigator(Navigator navigator)
navigator.navigateTo(getState())
.
This method should only be called by a Navigator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |