当前位置: 首页>>代码示例>>Java>>正文


Java SpringViewProvider类代码示例

本文整理汇总了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());
}
 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:24,代码来源:MainScreen.java

示例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;
}
 
开发者ID:eclipse,项目名称:hawkbit,代码行数:12,代码来源:AbstractHawkbitUI.java

示例3: VaadinUI

import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
public VaadinUI(SpringViewProvider viewProvider, I18N messages) {
    this.viewProvider = viewProvider;
    this.messages = messages;
}
 
开发者ID:limbr-management,项目名称:limbr,代码行数:6,代码来源:VaadinUI.java

示例4: MyLoginUI

import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
protected MyLoginUI(final SpringViewProvider viewProvider, final ApplicationContext context) {
    super(viewProvider, context);
}
 
开发者ID:eclipse,项目名称:hawkbit-examples,代码行数:5,代码来源:MyLoginUI.java

示例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);
}
 
开发者ID:eclipse,项目名称:hawkbit,代码行数:7,代码来源:MyUI.java

示例6: VaadinUI

import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
public VaadinUI(SpringViewProvider viewProvider) {
	this.viewProvider = viewProvider;
}
 
开发者ID:mathisdt,项目名称:locationstore,代码行数:5,代码来源:VaadinUI.java

示例7: NavigationUI

import com.vaadin.spring.navigator.SpringViewProvider; //导入依赖的package包/类
@Autowired
public NavigationUI(SpringViewProvider viewProvider) {
    this.viewProvider = viewProvider;
}
 
开发者ID:peholmst,项目名称:vaadin4spring,代码行数:5,代码来源:NavigationUI.java


注:本文中的com.vaadin.spring.navigator.SpringViewProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。