本文整理汇总了Java中com.vaadin.spring.navigator.SpringViewProvider类的典型用法代码示例。如果您正苦于以下问题:Java SpringViewProvider类的具体用法?Java SpringViewProvider怎么用?Java SpringViewProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SpringViewProvider类属于com.vaadin.spring.navigator包,在下文中一共展示了SpringViewProvider类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MainScreen
import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
public MainScreen(final VaadinSecurity vaadinSecurity, SpringViewProvider springViewProvider, ValoSideBar sideBar) {
HorizontalLayout layout = new HorizontalLayout();
layout.setSizeFull();
setCompositionRoot(layout);
setSizeFull();
// By adding a security item filter, only views that are accessible to the user will show up in the side bar.
sideBar.setItemFilter(new VaadinSecurityItemFilter(vaadinSecurity));
layout.addComponent(sideBar);
CssLayout viewContainer = new CssLayout();
viewContainer.setSizeFull();
layout.addComponent(viewContainer);
layout.setExpandRatio(viewContainer, 1f);
Navigator navigator = new Navigator(UI.getCurrent(), viewContainer);
// Without an AccessDeniedView, the view provider would act like the restricted views did not exist at all.
springViewProvider.setAccessDeniedViewClass(AccessDeniedView.class);
navigator.addProvider(springViewProvider);
navigator.setErrorView(ErrorView.class);
navigator.navigateTo(navigator.getState());
}
示例2: AbstractHawkbitUI
import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
protected AbstractHawkbitUI(final EventPushStrategy pushStrategy, final UIEventBus eventBus,
final SpringViewProvider viewProvider, final ApplicationContext context, final DashboardMenu dashboardMenu,
final ErrorView errorview, final NotificationUnreadButton notificationUnreadButton) {
this.pushStrategy = pushStrategy;
this.eventBus = eventBus;
this.viewProvider = viewProvider;
this.context = context;
this.dashboardMenu = dashboardMenu;
this.errorview = errorview;
this.notificationUnreadButton = notificationUnreadButton;
}
示例3: VaadinUI
import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
public VaadinUI(SpringViewProvider viewProvider, I18N messages) {
this.viewProvider = viewProvider;
this.messages = messages;
}
示例4: MyLoginUI
import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
protected MyLoginUI(final SpringViewProvider viewProvider, final ApplicationContext context) {
super(viewProvider, context);
}
示例5: MyUI
import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
MyUI(final EventPushStrategy pushStrategy, final UIEventBus eventBus, final SpringViewProvider viewProvider,
final ApplicationContext context, final DashboardMenu dashboardMenu, final ErrorView errorview,
final NotificationUnreadButton notificationUnreadButton) {
super(pushStrategy, eventBus, viewProvider, context, dashboardMenu, errorview, notificationUnreadButton);
}
示例6: VaadinUI
import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
public VaadinUI(SpringViewProvider viewProvider) {
this.viewProvider = viewProvider;
}
示例7: NavigationUI
import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
public NavigationUI(SpringViewProvider viewProvider) {
this.viewProvider = viewProvider;
}