Package org.eurekastreams.web.client.events

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


            eventBus.addObserver(GotPersonJoinedGroupsResponseEvent.class,
                    new Observer<GotPersonJoinedGroupsResponseEvent>()
                    {
                        public void update(final GotPersonJoinedGroupsResponseEvent event)
                        {
                            eventBus.removeObserver(event, this);

                            groups = event.getResponse();
                            if (subscribedGroupIds != null)
                            {
                                populate();
View Full Code Here


            eventBus.addObserver(GotGroupActivitySubscriptionsResponseEvent.class,
                    new Observer<GotGroupActivitySubscriptionsResponseEvent>()
                    {
                        public void update(final GotGroupActivitySubscriptionsResponseEvent event)
                        {
                            eventBus.removeObserver(event, this);

                            subscribedGroupIds = event.getResponse();
                            if (groups != null)
                            {
                                populate();
View Full Code Here

    public void unwireEventHandlers()
    {
        if (eventsWired)
        {
            final EventBus eventBus = Session.getInstance().getEventBus();
            eventBus.removeObserver(ValidationExceptionResponseEvent.class, validationExceptionResponseHandler);
            eventBus.removeObserver(ExceptionResponseEvent.class, exceptionResponseHandler);
            eventBus.removeObserver(PreSwitchedHistoryViewEvent.class, preSwitchedHistoryViewHandler);
            eventBus.removeObserver(SubmitFormIfChangedEvent.class, submitFormIfChangedHandler);
            eventsWired = false;
        }
View Full Code Here

    {
        if (eventsWired)
        {
            final EventBus eventBus = Session.getInstance().getEventBus();
            eventBus.removeObserver(ValidationExceptionResponseEvent.class, validationExceptionResponseHandler);
            eventBus.removeObserver(ExceptionResponseEvent.class, exceptionResponseHandler);
            eventBus.removeObserver(PreSwitchedHistoryViewEvent.class, preSwitchedHistoryViewHandler);
            eventBus.removeObserver(SubmitFormIfChangedEvent.class, submitFormIfChangedHandler);
            eventsWired = false;
        }
    }
View Full Code Here

        if (eventsWired)
        {
            final EventBus eventBus = Session.getInstance().getEventBus();
            eventBus.removeObserver(ValidationExceptionResponseEvent.class, validationExceptionResponseHandler);
            eventBus.removeObserver(ExceptionResponseEvent.class, exceptionResponseHandler);
            eventBus.removeObserver(PreSwitchedHistoryViewEvent.class, preSwitchedHistoryViewHandler);
            eventBus.removeObserver(SubmitFormIfChangedEvent.class, submitFormIfChangedHandler);
            eventsWired = false;
        }
    }
View Full Code Here

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

    /**
 
View Full Code Here

    @Override
    protected void onDetach()
    {
        super.onDetach();
        final EventBus eventBus = EventBus.getInstance();
        eventBus.removeObserver(UpdatedNotificationFilterPreferencesResponseEvent.class, settingsSavedObserver);
        eventBus.removeObserver(GotNotificationFilterPreferencesResponseEvent.class, gotDataObserver);
    }

    /**
     * Gathers settings and sends to model to send to server.
View Full Code Here

    protected void onDetach()
    {
        super.onDetach();
        final EventBus eventBus = EventBus.getInstance();
        eventBus.removeObserver(UpdatedNotificationFilterPreferencesResponseEvent.class, settingsSavedObserver);
        eventBus.removeObserver(GotNotificationFilterPreferencesResponseEvent.class, gotDataObserver);
    }

    /**
     * Gathers settings and sends to model to send to server.
     *
 
View Full Code Here

                {
                    public void update(final UpdatedReviewPendingGroupResponseEvent ev)
                    {
                        if (ev.getResponse().getGroupShortName().equals(group.getShortName()))
                        {
                            eventBus.removeObserver(ev, this);
                            String msg =
                                    ev.getResponse().getApproved() ? "The " + group.getName()
                                            + " group has been approved" : "The request to create the "
                                            + group.getName() + " group has been denied";
                            eventBus.notifyObservers(new ShowNotificationEvent(new Notification(msg)));
View Full Code Here

        eventBus.addObserver(GotNotificationListResponseEvent.class, new Observer<GotNotificationListResponseEvent>()
        {
            public void update(final GotNotificationListResponseEvent ev)
            {
                eventBus.removeObserver(ev, this);
                storeReceivedNotifications(ev.getResponse());
                selectSource(currentSource);
            }
        });
        eventBus.addObserver(NotificationClickedEvent.class, notificationClickedObserver);
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.