Package org.eurekastreams.web.client.events

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


        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"));

                messageUi.clear();
                urlUi.setValue("");

                waitSpinner.setVisible(false);
View Full Code Here


        });
        eventBus.addObserver(SendNotificationFailureEvent.class, new Observer<SendNotificationFailureEvent>()
        {
            public void update(final SendNotificationFailureEvent inArg1)
            {
                eventBus.notifyObservers(ShowNotificationEvent.getInstance("Error sending notification"));

                waitSpinner.setVisible(false);
                sendButton.setVisible(true);
            }
        });
View Full Code Here

                }
            }, new OnFailureCommand()
            {
                public void onFailure(final Throwable inEx)
                {
                    eventBus.notifyObservers(new MembershipCriteriaVerificationFailureEvent());
                }
            }, inUseClientCacheIfAvailable);
        }
        else
        {
View Full Code Here

                        }
                    }, new OnFailureCommand()
                    {
                        public void onFailure(final Throwable inEx)
                        {
                            eventBus.notifyObservers(new MembershipCriteriaVerificationFailureEvent());
                        }
                    }, inUseClientCacheIfAvailable);
        }
    }
View Full Code Here

    private void sendSuccessEvent(final MembershipCriteriaDTO inMembershipCriteria, final boolean found)
    {
        final EventBus eventBus = Session.getInstance().getEventBus();
        if (found)
        {
            eventBus.notifyObservers(new MembershipCriteriaAddedEvent(inMembershipCriteria, true));
        }
        else
        {
            eventBus.notifyObservers(new MembershipCriteriaVerificationNoUsersEvent());
        }
View Full Code Here

        {
            eventBus.notifyObservers(new MembershipCriteriaAddedEvent(inMembershipCriteria, true));
        }
        else
        {
            eventBus.notifyObservers(new MembershipCriteriaVerificationNoUsersEvent());
        }
    }
}
View Full Code Here

                            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)));
                        }
                    }
                });

        return groupPanel;
View Full Code Here

                DomainGroupModelView group = ev.getResponse();

                // destination depends on whether org allows immediate creation of groups
                CreateUrlRequest urlRqst = !group.isPending() ? new CreateUrlRequest(Page.GROUPS, group.getShortName())
                        : new CreateUrlRequest(Page.DISCOVER, "");
                eventBus.notifyObservers(new UpdateHistoryEvent(urlRqst));

                // tell the user what just happened
                eventBus.notifyObservers(new ShowNotificationEvent(new Notification(group.isPending() ? // \n
                "Your group has been submitted to an organization coordinator for approval"
                        : "Your group has been successfully created")));
View Full Code Here

                CreateUrlRequest urlRqst = !group.isPending() ? new CreateUrlRequest(Page.GROUPS, group.getShortName())
                        : new CreateUrlRequest(Page.DISCOVER, "");
                eventBus.notifyObservers(new UpdateHistoryEvent(urlRqst));

                // tell the user what just happened
                eventBus.notifyObservers(new ShowNotificationEvent(new Notification(group.isPending() ? // \n
                "Your group has been submitted to an organization coordinator for approval"
                        : "Your group has been successfully created")));
            }
        });
View Full Code Here

                {
                    public void update(final GotPersonalInformationResponseEvent event)
                    {
                        person = event.getResponse();

                        eventBus.notifyObservers(new SetBannerEvent(person));

                        final FormBuilder form = new FormBuilder("", PersonalInformationModel.getInstance(),
                                Method.UPDATE);

                        eventBus.addObserver(UpdatedPersonalInformationResponseEvent.class,
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.