Package org.eurekastreams.web.client.events

Examples of org.eurekastreams.web.client.events.EventBus.addObserver()


        {
            final EventBus eventBus = Session.getInstance().getEventBus();
            eventBus.addObserver(ValidationExceptionResponseEvent.class, validationExceptionResponseHandler);
            eventBus.addObserver(ExceptionResponseEvent.class, exceptionResponseHandler);
            eventBus.addObserver(PreSwitchedHistoryViewEvent.class, preSwitchedHistoryViewHandler);
            eventBus.addObserver(SubmitFormIfChangedEvent.class, submitFormIfChangedHandler);
            eventsWired = true;
        }
    }

    /**
 
View Full Code Here


                    }
                });
            }
        });

        eventBus.addObserver(GotSearchResultsResponseEvent.class, new Observer<GotSearchResultsResponseEvent>()
        {
            public void update(final GotSearchResultsResponseEvent event)
            {
                if ("global".equals(event.getCallerKey()))
                {
View Full Code Here

                }
            }
        });

        eventBus.addObserver(SwitchedHistoryViewEvent.class, new Observer<SwitchedHistoryViewEvent>()
        {
            public void update(final SwitchedHistoryViewEvent event)
            {
                if (event.getPage() != Page.SEARCH)
                {
View Full Code Here

        }

        // listen for model events
        final EventBus eventBus = Session.getInstance().getEventBus();

        eventBus.addObserver(UpdatedNotificationFilterPreferencesResponseEvent.class, settingsSavedObserver);
        eventBus.addObserver(GotNotificationFilterPreferencesResponseEvent.class, gotDataObserver);

        // request data
        NotificationFilterPreferencesModel.getInstance().fetch(null, true);
    }
View Full Code Here

        // listen for model events
        final EventBus eventBus = Session.getInstance().getEventBus();

        eventBus.addObserver(UpdatedNotificationFilterPreferencesResponseEvent.class, settingsSavedObserver);
        eventBus.addObserver(GotNotificationFilterPreferencesResponseEvent.class, gotDataObserver);

        // request data
        NotificationFilterPreferencesModel.getInstance().fetch(null, true);
    }
View Full Code Here

        initWidget(binder.createAndBindUi(this));
        checkIfSubmitAllowed();

        final EventBus eventBus = EventBus.getInstance();
        eventBus.addObserver(SendNotificationSuccessEvent.class, new Observer<SendNotificationSuccessEvent>()
        {
            public void update(final SendNotificationSuccessEvent inArg1)
            {
                eventBus.notifyObservers(ShowNotificationEvent.getInstance("Notification successfully sent"));
View Full Code Here

                waitSpinner.setVisible(false);
                sendButtonDisabled.setVisible(true);
            }
        });
        eventBus.addObserver(SendNotificationFailureEvent.class, new Observer<SendNotificationFailureEvent>()
        {
            public void update(final SendNotificationFailureEvent inArg1)
            {
                eventBus.notifyObservers(ShowNotificationEvent.getInstance("Error sending notification"));
View Full Code Here

     * Default Constructor.
     */
    public HistoryHandler()
    {
        EventBus eventBus = Session.getInstance().getEventBus();
        eventBus.addObserver(UpdateHistoryEvent.class, new Observer<UpdateHistoryEvent>()
        {
            public void update(final UpdateHistoryEvent event)
            {
                updateHistory(getHistoryToken(event.getRequest()));
            }
View Full Code Here

            public void update(final UpdateHistoryEvent event)
            {
                updateHistory(getHistoryToken(event.getRequest()));
            }
        });
        eventBus.addObserver(UpdateRawHistoryEvent.class, new Observer<UpdateRawHistoryEvent>()
        {
            public void update(final UpdateRawHistoryEvent event)
            {
                updateHistory(event.getHistoryToken());
            }
View Full Code Here

            public void update(final UpdateRawHistoryEvent event)
            {
                updateHistory(event.getHistoryToken());
            }
        });
        eventBus.addObserver(PreventHistoryChangeEvent.class, new Observer<PreventHistoryChangeEvent>()
        {
            public void update(final PreventHistoryChangeEvent event)
            {
                interruptHistoryChange = true;
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.