@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited @Import(value={com.vaadin.spring.VaadinConfiguration.class,ViewNavigatorEnabler.class}) public @interface EnableViewNavigator
SpringViewNavigator
navigator.
This interface imports VaadinConfiguration
, enabling Spring Vaadin integration. For this reason, replaces
EnableVaadin
annotation behaviour, which is not required anymore on configuration classes.
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends com.vaadin.navigator.View> |
accessDeniedView
Set the View class to use as access denied view, i.e. the view to show when a
ViewAccessControl
or a ViewInstanceAccessControl denies access to a view. |
String |
defaultViewName
Set the default navigator view name.
|
boolean |
enableViewContextInjection
Enable context data injection in navigation Views using
ViewContext annotation. |
Class<? extends com.vaadin.navigator.View> |
errorView
Set the View class to use as navigator error view.
|
int |
maxNavigationHistorySize
Limit view navigation history tracking.
|
boolean |
navigateToDefaultViewWhenViewNotAvailable
Set whether to navigate to default view (if setted) when a view is not available from current navigation state.
|
boolean |
registerSpringViewDisplayPostProcessor
Whether to register a standard SpringViewDisplayPostProcessor to scan for
SpringViewDisplay annotations |
public abstract boolean registerSpringViewDisplayPostProcessor
SpringViewDisplay
annotationstrue
to register a standard SpringViewDisplayPostProcessorpublic abstract boolean enableViewContextInjection
ViewContext
annotation.
Default is true
.
true
to enable context data injection in navigation Views using ViewContext
annotation.public abstract int maxNavigationHistorySize
-1
means no limit.public abstract String defaultViewName
ViewNavigator.navigateToDefault()
method and as a fallback by ViewNavigator.navigateBack()
method
if no other View is available in history or as a default view when no view name is specified.
If a default view name is explicitly specified, any DefaultView
annotated View is ignored.
public abstract boolean navigateToDefaultViewWhenViewNotAvailable
true
to navigate to default view (if setted) when a view is not available from current
navigation statepublic abstract Class<? extends com.vaadin.navigator.View> accessDeniedView
ViewAccessControl
or a ViewInstanceAccessControl
denies access to a view.
If an access denied view class is explicitly specified, any AccessDeniedView
annotated View is ignored.
Copyright © 2019 The Holon Platform. All rights reserved.