|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.navigator.Navigator.UriFragmentManager
public static class Navigator.UriFragmentManager
A NavigationStateManager using hashbang fragments in the Page
location URI to track views and enable listening to view changes.
A hashbang URI is one where the optional fragment or "hash" part - the part following a # sign - is used to encode navigation state in a web application. The advantage of this is that the fragment can be dynamically manipulated by javascript without causing page reloads.
This class is mostly for internal use by Navigator, and is only public and static to enable testing.
| Constructor Summary | |
|---|---|
Navigator.UriFragmentManager(Page page,
Navigator navigator)
Create a new URIFragmentManager and attach it to listen to URI fragment changes of a Page. |
|
| Method Summary | |
|---|---|
void |
fragmentChanged(Page.FragmentChangedEvent event)
|
java.lang.String |
getState()
Returns the current navigation state including view name and any optional parameters. |
void |
setState(java.lang.String state)
Set the current navigation state in the location URI or similar location, including view name and any optional parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Navigator.UriFragmentManager(Page page,
Navigator navigator)
Page.
page - page whose URI fragment to get and modifynavigator - Navigator to notify of fragment changes (using
Navigator.navigateTo(String)| Method Detail |
|---|
public java.lang.String getState()
NavigationStateManager
getState in interface NavigationStateManagerpublic void setState(java.lang.String state)
NavigationStateManager
setState in interface NavigationStateManagerpublic void fragmentChanged(Page.FragmentChangedEvent event)
fragmentChanged in interface Page.FragmentChangedListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||