Package org.eurekastreams.web.client.events

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


                        eventBus.addObserver(UpdatedPersonalInformationResponseEvent.class,
                                new Observer<UpdatedPersonalInformationResponseEvent>()
                                {
                                    public void update(final UpdatedPersonalInformationResponseEvent arg1)
                                    {
                                        eventBus.notifyObservers(new ShowNotificationEvent(new Notification(
                                                "Your profile has been updated.")));
                                        form.onSuccess();
                                    }
                                });
View Full Code Here


        {
            public void onClick(final ClickEvent arg0)
            {
                waitSpinner.setVisible(true);
                addingMore = true;
                eventBus.notifyObservers(new StreamRequestMoreEvent());
            }
        });
    }

    /**
 
View Full Code Here

                // clear following model
                CurrentUserPersonFollowingStatusModel.getInstance().clearCache();

                EventBus eventBus = Session.getInstance().getEventBus();
                eventBus.notifyObservers(new InsertedGroupMemberResponseEvent(request, response));

                // simulate a status request for recipients that don't listen for changes. Event type has person in the
                // name, but that is the event used when querying groups
                eventBus.notifyObservers(new GotPersonFollowerStatusResponseEvent(FollowerStatus.FOLLOWING));
            }
View Full Code Here

                EventBus eventBus = Session.getInstance().getEventBus();
                eventBus.notifyObservers(new InsertedGroupMemberResponseEvent(request, response));

                // simulate a status request for recipients that don't listen for changes. Event type has person in the
                // name, but that is the event used when querying groups
                eventBus.notifyObservers(new GotPersonFollowerStatusResponseEvent(FollowerStatus.FOLLOWING));
            }
        });
    }

    /**
 
View Full Code Here

                // clear following model
                CurrentUserPersonFollowingStatusModel.getInstance().clearCache();
                StreamsDiscoveryModel.getInstance().clearCache();

                EventBus eventBus = Session.getInstance().getEventBus();
                eventBus.notifyObservers(new DeletedGroupMemberResponseEvent(request, response));

                // simulate a status request for recipients that don't listen for changes. Event type has person in the
                // name, but that is the event used when querying groups
                eventBus.notifyObservers(new GotPersonFollowerStatusResponseEvent(FollowerStatus.NOTFOLLOWING));
               
View Full Code Here

                EventBus eventBus = Session.getInstance().getEventBus();
                eventBus.notifyObservers(new DeletedGroupMemberResponseEvent(request, response));

                // simulate a status request for recipients that don't listen for changes. Event type has person in the
                // name, but that is the event used when querying groups
                eventBus.notifyObservers(new GotPersonFollowerStatusResponseEvent(FollowerStatus.NOTFOLLOWING));
               
                // In the event that a User is removed as a Follower of a Group,
                // then it's necessary to update the UI to see that
                // the removed User is no longer is a member of this Group, and that
                // the Followers Count decrements by 1.
View Full Code Here

                            linkInformation.setTitle(inLinkUrl);
                            linkInformation.setUrl(inLinkUrl);

                            MessageAttachmentChangedEvent event = new MessageAttachmentChangedEvent(new Bookmark(
                                    linkInformation));
                            eventBus.notifyObservers(event);

                            eventBus.notifyObservers(new
                            // line break.
                            ShowNotificationEvent(new Notification(UNVERIFIED_URL_MESSAGE)));
                        }
View Full Code Here

                            MessageAttachmentChangedEvent event = new MessageAttachmentChangedEvent(new Bookmark(
                                    linkInformation));
                            eventBus.notifyObservers(event);

                            eventBus.notifyObservers(new
                            // line break.
                            ShowNotificationEvent(new Notification(UNVERIFIED_URL_MESSAGE)));
                        }

                        public void onSuccess(final LinkInformation result)
View Full Code Here

                            if (titleBlank)
                            {
                                result.setTitle(result.getUrl());
                            }

                            eventBus.notifyObservers(event);
                        }
                    });
        }

        fetchedLink = inLinkUrl;
View Full Code Here

        eventBus.addObserver(InsertedRequestForGroupMembershipResponseEvent.class,
                new Observer<InsertedRequestForGroupMembershipResponseEvent>()
                {
                    public void update(final InsertedRequestForGroupMembershipResponseEvent inArg1)
                    {
                        eventBus.notifyObservers(new ShowNotificationEvent(new Notification(
                                "Your request for access has been sent")));

                        // TODO disable button instead
                        clear();
                        Label sent = new Label("Request Sent");
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.