use of de.novanic.eventservice.client.event.RemoteEventService in project opennms by OpenNMS.
the class Main method onModuleLoad.
@Override
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());
}
use of de.novanic.eventservice.client.event.RemoteEventService in project opennms by OpenNMS.
the class DefaultLocationManager method initializeEventService.
private void initializeEventService() {
LocationListener locationListener = new DefaultLocationListener(this);
final RemoteEventService eventService = getRemoteEventService();
eventService.addListener(MapRemoteEventHandler.LOCATION_EVENT_DOMAIN, locationListener);
eventService.addListener(null, locationListener);
}
Aggregations