Package org.eurekastreams.web.client.events

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


        displayPanel.add(selector);
        displayPanel.add(linkInfoPanel);
        displayPanel.add(selector.getPagingControls());

        EventBus eventBus = Session.getInstance().getEventBus();
        eventBus.addObserver(ParseLinkEvent.getEvent(), new Observer<ParseLinkEvent>()
        {
            public void update(final ParseLinkEvent event)
            {
                onAddLinkClicked();
                linkUrl.setText(event.getUrl());
View Full Code Here


                fetchLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().verifyingLink());
                fetchLink(event.getUrl());
            }
        });

        eventBus.addObserver(MessageAttachmentChangedEvent.class, new Observer<MessageAttachmentChangedEvent>()
        {
            public void update(final MessageAttachmentChangedEvent evt)
            {
                if (evt.getAttachment() != null && evt.getAttachment() instanceof Bookmark)
                {
View Full Code Here

        this.addStyleName(StaticResourceBundle.INSTANCE.coreCss().requestGroupAccess());
        this.add(new Label("private group: please contact the "));
        this.add(request);
        this.add(new Label(" to request access"));

        eventBus.addObserver(InsertedRequestForGroupMembershipResponseEvent.class,
                new Observer<InsertedRequestForGroupMembershipResponseEvent>()
                {
                    public void update(final InsertedRequestForGroupMembershipResponseEvent inArg1)
                    {
                        eventBus.notifyObservers(new ShowNotificationEvent(new Notification(
View Full Code Here

        stream.reinitialize();

        // ---- Wire up events ----
        final EventBus eventBus = Session.getInstance().getEventBus();

        eventBus.addObserver(UpdatedHistoryParametersEvent.class, new Observer<UpdatedHistoryParametersEvent>()
        {
            public void update(final UpdatedHistoryParametersEvent event)
            {
                checkHistory(event.getParameters());
View Full Code Here

        currentReadFilterWidget = unreadFilterUi;

        // -- setup events --
        final EventBus eventBus = Session.getInstance().getEventBus();

        eventBus.addObserver(GotNotificationListResponseEvent.class, new Observer<GotNotificationListResponseEvent>()
        {
            public void update(final GotNotificationListResponseEvent ev)
            {
                eventBus.removeObserver(ev, this);
                storeReceivedNotifications(ev.getResponse());
View Full Code Here

                eventBus.removeObserver(ev, this);
                storeReceivedNotifications(ev.getResponse());
                selectSource(currentSource);
            }
        });
        eventBus.addObserver(NotificationClickedEvent.class, notificationClickedObserver);
        eventBus.addObserver(NotificationDeleteRequestEvent.class, notificationDeleteRequestObserver);

        // -- request data --
        NotificationListModel.getInstance().fetch(null, false);
    }
View Full Code Here

                // Only process this once.
                eventBus.removeObserver(UpdatedHistoryParametersEvent.class, this);
            }
        }, true);

        eventBus.addObserver(UpdatedHistoryParametersEvent.class, new Observer<UpdatedHistoryParametersEvent>()
        {
            public void update(final UpdatedHistoryParametersEvent event)
            {
                if (checkHistory(event.getParameters()))
                {
View Full Code Here

                storeReceivedNotifications(ev.getResponse());
                selectSource(currentSource);
            }
        });
        eventBus.addObserver(NotificationClickedEvent.class, notificationClickedObserver);
        eventBus.addObserver(NotificationDeleteRequestEvent.class, notificationDeleteRequestObserver);

        // -- request data --
        NotificationListModel.getInstance().fetch(null, false);
    }
View Full Code Here

                    eventBus.notifyObservers(StreamReinitializeRequestEvent.getEvent());
                }
            }
        });

        eventBus.addObserver(GotActivityResponseEvent.class, new Observer<GotActivityResponseEvent>()
        {
            public void update(final GotActivityResponseEvent event)
            {
                setSingleActivityMode();
                activityDetailPanel.clear();
View Full Code Here

                activityDetailPanel.clear();
                activityDetailPanel.add(new ActivityDetailPanel(event.getResponse(), inShowRecipients));
            }
        });

        eventBus.addObserver(StreamRequestMoreEvent.class, new Observer<StreamRequestMoreEvent>()
        {
            public void update(final StreamRequestMoreEvent arg1)
            {
                JSONObject jsonObj = StreamJsonRequestFactory.getJSONRequest(jsonQuery);
                jsonObj = StreamJsonRequestFactory.setMaxId(lastSeenId, jsonObj);
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.