|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.navigator.Navigator
com.vaadin.spring.navigator.SpringNavigator
@UIScope public class SpringNavigator
A Navigator that automatically uses SpringViewProvider and allows
late initialization.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vaadin.navigator.Navigator |
|---|
com.vaadin.navigator.Navigator.ClassBasedViewProvider, com.vaadin.navigator.Navigator.ComponentContainerViewDisplay, com.vaadin.navigator.Navigator.EmptyView, com.vaadin.navigator.Navigator.SingleComponentContainerViewDisplay, com.vaadin.navigator.Navigator.StaticViewProvider, com.vaadin.navigator.Navigator.UriFragmentManager |
| Constructor Summary | |
|---|---|
SpringNavigator()
|
|
SpringNavigator(com.vaadin.ui.UI ui,
com.vaadin.ui.ComponentContainer container)
|
|
SpringNavigator(com.vaadin.ui.UI ui,
com.vaadin.navigator.NavigationStateManager stateManager,
com.vaadin.navigator.ViewDisplay display)
|
|
SpringNavigator(com.vaadin.ui.UI ui,
com.vaadin.ui.SingleComponentContainer container)
|
|
SpringNavigator(com.vaadin.ui.UI ui,
com.vaadin.navigator.ViewDisplay display)
|
|
| Method Summary | |
|---|---|
void |
addViewActivationListener(ViewActivationListener listener)
Adds a listener on view activation |
protected org.springframework.context.ApplicationContext |
getWebApplicationContext()
|
void |
init(com.vaadin.ui.UI ui,
com.vaadin.ui.ComponentContainer container)
Initializes an injected navigator and registers SpringViewProvider for it. |
void |
init(com.vaadin.ui.UI ui,
com.vaadin.navigator.NavigationStateManager stateManager,
com.vaadin.navigator.ViewDisplay display)
The SpringViewProvider bean from the context is automatically
registered for the navigator. |
void |
init(com.vaadin.ui.UI ui,
com.vaadin.ui.SingleComponentContainer container)
Initializes an injected navigator and registers SpringViewProvider for it. |
void |
init(com.vaadin.ui.UI ui,
com.vaadin.navigator.ViewDisplay display)
Initializes an injected navigator and registers SpringViewProvider for it. |
void |
removeViewActivationListener(ViewActivationListener listener)
Removes a listener on view activation |
void |
setErrorView(Class<? extends com.vaadin.navigator.View> viewClass)
Registers a view class for the view to show when no other view matches the navigation state. |
protected void |
switchView(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
|
| Methods inherited from class com.vaadin.navigator.Navigator |
|---|
addProvider, addView, addView, addViewChangeListener, beforeViewChange, destroy, fireAfterViewChange, fireBeforeViewChange, getCurrentView, getDisplay, getState, getStateManager, getUI, navigateTo, navigateTo, removeProvider, removeView, removeViewChangeListener, revertNavigation, setErrorProvider, setErrorView, updateNavigationState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringNavigator()
public SpringNavigator(com.vaadin.ui.UI ui,
com.vaadin.ui.ComponentContainer container)
public SpringNavigator(com.vaadin.ui.UI ui,
com.vaadin.navigator.NavigationStateManager stateManager,
com.vaadin.navigator.ViewDisplay display)
public SpringNavigator(com.vaadin.ui.UI ui,
com.vaadin.ui.SingleComponentContainer container)
public SpringNavigator(com.vaadin.ui.UI ui,
com.vaadin.navigator.ViewDisplay display)
| Method Detail |
|---|
public void addViewActivationListener(ViewActivationListener listener)
listener - public void removeViewActivationListener(ViewActivationListener listener)
listener - protected void switchView(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
switchView in class com.vaadin.navigator.Navigator
public void init(com.vaadin.ui.UI ui,
com.vaadin.ui.ComponentContainer container)
SpringViewProvider for it.
The default navigation state manager (based on URI fragments) is used.
Navigation is automatically initiated after UI.init() if a
navigator was created. If at a later point changes are made to the
navigator, navigator.navigateTo(navigator.getState()) may need to
be explicitly called to ensure the current view matches the navigation
state.
ui - The UI to which this Navigator is attached.container - The component container used to display the views handled by
this navigator
public void init(com.vaadin.ui.UI ui,
com.vaadin.ui.SingleComponentContainer container)
SpringViewProvider for it.
The default navigation state manager (based on URI fragments) is used.
Navigation is automatically initiated after UI.init() if a
navigator was created. If at a later point changes are made to the
navigator, navigator.navigateTo(navigator.getState()) may need to
be explicitly called to ensure the current view matches the navigation
state.
ui - The UI to which this Navigator is attached.container - The single component container used to display the views
handled by this navigator
public void init(com.vaadin.ui.UI ui,
com.vaadin.navigator.ViewDisplay display)
SpringViewProvider for it.
The default navigation state manager (based on URI fragments) is used.
Navigation is automatically initiated after UI.init() if a
navigator was created. If at a later point changes are made to the
navigator, navigator.navigateTo(navigator.getState()) may need to
be explicitly called to ensure the current view matches the navigation
state.
ui - The UI to which this Navigator is attached.display - The ViewDisplay used to display the views handled by this
navigator
public void init(com.vaadin.ui.UI ui,
com.vaadin.navigator.NavigationStateManager stateManager,
com.vaadin.navigator.ViewDisplay display)
SpringViewProvider bean from the context is automatically
registered for the navigator.
init in class com.vaadin.navigator.Navigatorpublic void setErrorView(Class<? extends com.vaadin.navigator.View> viewClass)
Navigator.setErrorProvider(ViewProvider) call.
A bean of the given type is fetched on demand from the application
context to be used as the error view. As a fallback mechanism for
backwards compatibility, Class.newInstance() is used if no such
bean is found.
Note that an error view bean must be UI or prototype scoped.
setErrorView in class com.vaadin.navigator.NavigatorviewClass - The View class whose instance should be used as the error
view.protected org.springframework.context.ApplicationContext getWebApplicationContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||