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


Java RemoteEventService类代码示例

本文整理汇总了Java中de.novanic.eventservice.client.event.RemoteEventService的典型用法代码示例。如果您正苦于以下问题:Java RemoteEventService类的具体用法?Java RemoteEventService怎么用?Java RemoteEventService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RemoteEventService类属于de.novanic.eventservice.client.event包,在下文中一共展示了RemoteEventService类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DefaultLocationManager

import de.novanic.eventservice.client.event.RemoteEventService; //导入依赖的package包/类
/**
 * <p>Constructor for DefaultLocationManager.</p>
 *
 * @param eventBus a {@link com.google.gwt.event.shared.HandlerManager} object.
 * @param view 
 * @param mapPanel a {@link org.opennms.features.poller.remote.gwt.client.MapPanel} object.
 * @param panel a {@link com.google.gwt.user.client.ui.SplitLayoutPanel} object.
 * @param locationPanel a {@link org.opennms.features.poller.remote.gwt.client.LocationPanel} object.
 */
public DefaultLocationManager(final HandlerManager eventBus, ApplicationView view, LocationStatusServiceAsync remoteService, RemoteEventService remoteEventService, CommandExecutor commandExecutor) {
    m_eventBus = eventBus;
    m_view = view;
    m_remoteService = remoteService;
    m_remoteEventService = remoteEventService;
    m_executor = commandExecutor;

    // Register for all relevant events thrown by the UI components
    m_eventBus.addHandler(LocationPanelSelectEvent.TYPE, this);
    m_eventBus.addHandler(MapPanelBoundsChangedEvent.TYPE, this);
    m_eventBus.addHandler(FiltersChangedEvent.TYPE, this);
    m_eventBus.addHandler(TagSelectedEvent.TYPE, this);
    m_eventBus.addHandler(TagClearedEvent.TYPE, this);
    m_eventBus.addHandler(StatusSelectionChangedEvent.TYPE, this);
    m_eventBus.addHandler(ApplicationDeselectedEvent.TYPE, this);
    m_eventBus.addHandler(ApplicationSelectedEvent.TYPE, this);
    m_eventBus.addHandler(GWTMarkerClickedEvent.TYPE, this);
    m_eventBus.addHandler(GWTMarkerInfoWindowRefreshEvent.TYPE, this);
    
    initialize(view.getSelectedStatuses());
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:31,代码来源:DefaultLocationManager.java

示例2: onModuleLoad

import de.novanic.eventservice.client.event.RemoteEventService; //导入依赖的package包/类
public void onModuleLoad() {
    m_eventBus = new HandlerManager(null);
    Application application = new Application(getEventBus());
    MapPanel mapPanel = createMap(application);
    
    LocationStatusServiceAsync remoteService = GWT.create(LocationStatusService.class);
    RemoteEventService remoteEventService = RemoteEventServiceFactory.getInstance().getRemoteEventService();
    application.initialize(new DefaultApplicationView(application, getEventBus(), mapPanel), remoteService, remoteEventService, new DeferredCommandExecutor());

}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:11,代码来源:Main.java

示例3: initializeEventService

import de.novanic.eventservice.client.event.RemoteEventService; //导入依赖的package包/类
private void initializeEventService() {
    LocationListener locationListener = new DefaultLocationListener(this);
    
    final RemoteEventService eventService = getRemoteEventService();
    eventService.addListener(MapRemoteEventHandler.LOCATION_EVENT_DOMAIN, locationListener);
    eventService.addListener(null, locationListener);
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:8,代码来源:DefaultLocationManager.java

示例4: getRemoteEventService

import de.novanic.eventservice.client.event.RemoteEventService; //导入依赖的package包/类
private RemoteEventService getRemoteEventService() {
    return m_remoteEventService;
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:4,代码来源:DefaultLocationManager.java

示例5: initialize

import de.novanic.eventservice.client.event.RemoteEventService; //导入依赖的package包/类
public void initialize(ApplicationView view, LocationStatusServiceAsync remoteService, RemoteEventService remoteEventService, CommandExecutor executor) {
    // Register for all relevant events thrown by the UI components
    getEventBus().addHandler(LocationsUpdatedEvent.TYPE, this);
    
    // Log.setUncaughtExceptionHandler();
    m_view = view;
    
    m_locationManager = new DefaultLocationManager(getEventBus(), m_view, remoteService, remoteEventService, executor);
    
    m_view.initialize();
    
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:13,代码来源:Application.java


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