當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。