Package de.novanic.eventservice.client.event.listener

Examples of de.novanic.eventservice.client.event.listener.RemoteEventListener


       
        // Hang on to the session identifier
        sessionID = lr.getSessionID();
        originatorID = lr.getOriginatorID();
     
        eventService.addListener(eventDomain, new RemoteEventListener() {
              public void apply(Event anEvent) {
                handleAsynchronousInfo(anEvent);
              }
          });
       
View Full Code Here


        /* Logic for GWTEventService starts here */

        //get the RemoteEventService for registration of RemoteEventListener instances
        RemoteEventService theRemoteEventService = RemoteEventServiceFactory.getInstance().getRemoteEventService();
        //add a listener to the SERVER_MESSAGE_DOMAIN
        theRemoteEventService.addListener(ServerGeneratedMessageEvent.SERVER_MESSAGE_DOMAIN, new RemoteEventListener() {
            public void apply(Event anEvent) {
                if(anEvent instanceof ServerGeneratedMessageEvent) {
                    ServerGeneratedMessageEvent theServerGeneratedMessageEvent = (ServerGeneratedMessageEvent)anEvent;
                    myEventReceiveBoxUI.addItem(theServerGeneratedMessageEvent.getServerGeneratedMessage());
                }
View Full Code Here

        });

        //get the RemoteEventService for registration of RemoteEventListener instances
        RemoteEventService theRemoteEventService = RemoteEventServiceFactory.getInstance().getRemoteEventService();
        //add a listener to the RAPID_EVENT_CONTROL_DOMAIN to observe the starting and stopping of rapid event execution
        theRemoteEventService.addListener(ControlEvent.RAPID_EVENT_CONTROL_DOMAIN, new RemoteEventListener() {
            public void apply(Event anEvent) {
                if(anEvent instanceof StartEvent) {
                    startLocal();
                } else if(anEvent instanceof StopEvent) {
                    stopLocal();
View Full Code Here

    private void addRapidEventListener() {
        removeRapidEventListener();

        //add a listener to the RAPID_EVENT_DOMAIN
        RemoteEventService theRemoteEventService = RemoteEventServiceFactory.getInstance().getRemoteEventService();
        theRemoteEventService.addListener(RapidEvent.RAPID_EVENT_DOMAIN, new RemoteEventListener() {
            public void apply(Event anEvent) {
                myReceivedEventsLabel.incrementReceivedEventCount();
            }
        });
    }
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.client.event.listener.RemoteEventListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.