Package org.eurekastreams.web.client.events

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


        // wire up events to refresh the list when something is removed
        eventBus.addObserver(UpdatedActivityFlagResponseEvent.class, new Observer<UpdatedActivityFlagResponseEvent>()
        {
            public void update(final UpdatedActivityFlagResponseEvent ev)
            {
                eventBus.notifyObservers(new ShowNotificationEvent(new Notification(
                        "The flagged activity has been allowed")));
                adminTabContent.reload();
            }
        });
View Full Code Here


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

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

                eventBus.notifyObservers(new GotPersonFollowerStatusResponseEvent(FollowerStatus.FOLLOWING));
            }
        });
    }
View Full Code Here

                StreamsDiscoveryModel.getInstance().clearCache();

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

                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 DeletedPersonFollowerResponseEvent(request, response));

                eventBus.notifyObservers(new GotPersonFollowerStatusResponseEvent(FollowerStatus.NOTFOLLOWING));
            }
        });
    }
View Full Code Here

                StreamsDiscoveryModel.getInstance().clearCache();

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

                eventBus.notifyObservers(new GotPersonFollowerStatusResponseEvent(FollowerStatus.NOTFOLLOWING));
            }
        });
    }

}
View Full Code Here

                if (hasFormChanged())
                {
                    if (new WidgetJSNIFacadeImpl().confirm("The form has been changed. Do you wish to save changes?"))
                    {
                        EventBus eventBus = Session.getInstance().getEventBus();
                        eventBus.notifyObservers(new PreventHistoryChangeEvent());
                        eventBus.notifyObservers(new SubmitFormIfChangedEvent());
                    }
                }
            }
        };
View Full Code Here

                {
                    if (new WidgetJSNIFacadeImpl().confirm("The form has been changed. Do you wish to save changes?"))
                    {
                        EventBus eventBus = Session.getInstance().getEventBus();
                        eventBus.notifyObservers(new PreventHistoryChangeEvent());
                        eventBus.notifyObservers(new SubmitFormIfChangedEvent());
                    }
                }
            }
        };
View Full Code Here

                            {
                                public void onClick(final ClickEvent event)
                                {
                                    ArrayList<String> views = new ArrayList<String>();
                                    views.add(person.getAccountId());
                                    eventBus.notifyObservers(new UpdateHistoryEvent(new CreateUrlRequest(Page.PEOPLE,
                                            views)));
                                }
                            });

                        }
View Full Code Here

                            {
                                public void onClick(final ClickEvent event)
                                {
                                    ArrayList<String> views = new ArrayList<String>();
                                    views.add(group.getShortName());
                                    eventBus.notifyObservers(new UpdateHistoryEvent(new CreateUrlRequest(Page.GROUPS,
                                            views)));
                                }
                            });
                        }
View Full Code Here

                        itemContainer.addClickHandler(new ClickHandler()
                        {
                            public void onClick(final ClickEvent event)
                            {
                                eventBus.notifyObservers(new UpdateHistoryEvent(new CreateUrlRequest(Page.SEARCH,
                                        generateParams(searchTerm.getText()), false)));
                            }
                        });

                        itemContainer.addMouseOverHandler(new MouseOverHandler()
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.