本文整理汇总了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());
}
示例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());
}
示例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);
}
示例4: getRemoteEventService
import de.novanic.eventservice.client.event.RemoteEventService; //导入依赖的package包/类
private RemoteEventService getRemoteEventService() {
return m_remoteEventService;
}
示例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();
}