本文整理匯總了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();
}