本文整理汇总了Java中org.vaadin.spring.events.EventBus.UIEventBus方法的典型用法代码示例。如果您正苦于以下问题:Java EventBus.UIEventBus方法的具体用法?Java EventBus.UIEventBus怎么用?Java EventBus.UIEventBus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.vaadin.spring.events.EventBus
的用法示例。
在下文中一共展示了EventBus.UIEventBus方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AbstractNotificationView
import org.vaadin.spring.events.EventBus; //导入方法依赖的package包/类
/**
* Constructor.
*
* @param eventBus
* the ui event bus
* @param notificationUnreadButton
* the notificationUnreadButton
*/
public AbstractNotificationView(final EventBus.UIEventBus eventBus,
final NotificationUnreadButton notificationUnreadButton) {
this.eventBus = eventBus;
this.notificationUnreadButton = notificationUnreadButton;
this.viewUnreadNotifcations = new AtomicInteger(0);
skipUiEventsCache = CacheBuilder.newBuilder().expireAfterAccess(10, SECONDS).build();
eventBus.subscribe(this);
}
示例2: getEventBus
import org.vaadin.spring.events.EventBus; //导入方法依赖的package包/类
/**
* @return the eventBus
*/
public EventBus.UIEventBus getEventBus() {
return eventBus;
}
示例3: getEventBus
import org.vaadin.spring.events.EventBus; //导入方法依赖的package包/类
public EventBus.UIEventBus getEventBus() {
return eventBus;
}
示例4: AutowiredPresenter
import org.vaadin.spring.events.EventBus; //导入方法依赖的package包/类
@Autowired
public AutowiredPresenter(FooView view, EventBus.UIEventBus eventBus) {
super(view, eventBus);
}
示例5: proxiedUiEventBus
import org.vaadin.spring.events.EventBus; //导入方法依赖的package包/类
@Bean
@Scope(value = UIScopeImpl.VAADIN_UI_SCOPE_NAME, proxyMode = ScopedProxyMode.INTERFACES)
@EventBusProxy
EventBus.UIEventBus proxiedUiEventBus() {
return uiEventBus();
}
示例6: uiEventBus
import org.vaadin.spring.events.EventBus; //导入方法依赖的package包/类
@Bean
@Scope(value = UIScopeImpl.VAADIN_UI_SCOPE_NAME, proxyMode = ScopedProxyMode.NO)
@Primary
EventBus.UIEventBus uiEventBus() {
return new ScopedEventBus.DefaultUIEventBus(sessionEventBus());
}
示例7: UploadResultWindow
import org.vaadin.spring.events.EventBus; //导入方法依赖的package包/类
/**
* Initialize upload status popup.
*
* @param uploadResultList
* upload status details
* @param i18n
* I18N
*/
UploadResultWindow(final List<UploadStatus> uploadResultList, final VaadinMessageSource i18n, final EventBus.UIEventBus eventBus) {
this.uploadResultList = uploadResultList;
this.i18n = i18n;
this.eventBus = eventBus;
createComponents();
createLayout();
}
示例8: SoftwareModuleDetailsTable
import org.vaadin.spring.events.EventBus; //导入方法依赖的package包/类
/**
* Initialize software module table- to be displayed in details layout.
*
* @param i18n
* I18N
* @param isUnassignSoftModAllowed
* boolean flag to check for unassign functionality allowed for
* the view.
* @param distributionSetManagement
* DistributionSetManagement
* @param permissionChecker
* SpPermissionChecker
* @param eventBus
* SessionEventBus
* @param manageDistUIState
* ManageDistUIState
* @param uiNotification
* UINotification for displaying error and success notifications
*/
public SoftwareModuleDetailsTable(final VaadinMessageSource i18n, final boolean isUnassignSoftModAllowed,
final SpPermissionChecker permissionChecker, final DistributionSetManagement distributionSetManagement,
final EventBus.UIEventBus eventBus, final ManageDistUIState manageDistUIState,
final UINotification uiNotification) {
this.i18n = i18n;
this.isUnassignSoftModAllowed = isUnassignSoftModAllowed;
this.permissionChecker = permissionChecker;
this.distributionSetManagement = distributionSetManagement;
this.manageDistUIState = manageDistUIState;
this.eventBus = eventBus;
this.uiNotification = uiNotification;
createSwModuleTable();
}