Search in sources :

Example 1 with RemoteEventService

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());
}
Also used : RemoteEventService(de.novanic.eventservice.client.event.RemoteEventService) HandlerManager(com.google.gwt.event.shared.HandlerManager)

Example 2 with RemoteEventService

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);
}
Also used : RemoteEventService(de.novanic.eventservice.client.event.RemoteEventService)

Aggregations

RemoteEventService (de.novanic.eventservice.client.event.RemoteEventService)2 HandlerManager (com.google.gwt.event.shared.HandlerManager)1