Examples of HideNotificationEvent


Examples of org.eurekastreams.web.client.events.HideNotificationEvent

                                            {
                                                public void onClick(final ClickEvent event)
                                                {
                                                    GadgetModel.getInstance().undoDelete(gadgetData.getId());
                                                    Session.getInstance().getEventBus().notifyObservers(
                                                            new HideNotificationEvent());
                                                }
                                            }), "")));
                        }
                    }
                });
View Full Code Here

Examples of org.eurekastreams.web.client.events.HideNotificationEvent

            public void onClick(final ClickEvent arg0)
            {
                Stream newStream = new Stream();
                newStream.setRequest(lastRequest);

                Session.getInstance().getEventBus().notifyObservers(new HideNotificationEvent());
                Dialog.showCentered(new CustomStreamDialogContent(newStream));
            }
        });

        closeButton.addClickHandler(new ClickHandler()
View Full Code Here

Examples of org.eurekastreams.web.client.events.HideNotificationEvent

                                new Observer<InsertedStartTabResponseEvent>()
                                {
                                    public void update(final InsertedStartTabResponseEvent event)
                                    {
                                        Session.getInstance().getEventBus()
                                                .notifyObservers(new HideNotificationEvent());

                                        newTab.getTextBox().setVisible(false);
                                        newTab.getLabel().setVisible(true);

                                        StartPageTab tab = new StartPageTab(event.getResponse());
                                        tabs.insertTab(tab, event.getResponse().getTabIndex());

                                        // If more than 8 tabs (the new tab counts as 1) disable the new tab.
                                        if (tabs.getSize() >= Person.TAB_LIMIT + 1)
                                        {
                                            tabs.removeTab(newTab.getIdentifier());
                                        }

                                        // If 2 tabs are present (the new tab counts as 1) re-enable the remove.
                                        if (tabs.getSize() == 3)
                                        {
                                            ((StartPageTab) tabs.getTab(0)).enableRemove();
                                        }

                                        // The start page tab is ready.
                                        Session.getInstance().getEventBus().notifyObservers(
                                                new StartPageTabReadyEvent(tab));

                                        Session.getInstance().getEventBus().notifyObservers(
                                                new UpdateHistoryEvent(new CreateUrlRequest("tab", tab.getIdentifier(),
                                                        true)));
                                    }
                                });

                        Session.getInstance().getEventBus().addObserver(DeletedStartPageTabResponseEvent.class,
                                new Observer<DeletedStartPageTabResponseEvent>()
                                {
                                    public void update(final DeletedStartPageTabResponseEvent event)
                                    {
                                        tabs.removeTab(String.valueOf(event.getResponse().getId()));
                                        tabs.addTab(newTab);
                                        Session.getInstance().getEventBus().notifyObservers(
                                                new ShowNotificationEvent(new Notification(new UndoDeleteNotification(
                                                        event.getResponse().getTabName(), new ClickHandler()
                                                        {
                                                            public void onClick(final ClickEvent clickEvent)
                                                            {
                                                                StartTabsModel.getInstance().undoDelete(
                                                                        event.getResponse().getId());
                                                                Session.getInstance().getEventBus().notifyObservers(
                                                                        new HideNotificationEvent());
                                                            }
                                                        }), "")));

                                        // Highlight the first tab
                                        Session.getInstance().getEventBus().notifyObservers(
View Full Code Here

Examples of org.eurekastreams.web.client.events.HideNotificationEvent

        closeButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().closeNotification());
        closeButton.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent arg0)
            {
                Session.getInstance().getEventBus().notifyObservers(new HideNotificationEvent());
            }
        });

        Session.getInstance().getEventBus().addObserver(ShowNotificationEvent.class,
                new Observer<ShowNotificationEvent>()
View Full Code Here

Examples of org.eurekastreams.web.client.events.HideNotificationEvent

                            galleryAddOrEditContainer.setVisible(false);
                            galleryPortalContainer.setVisible(true);

                            setPreviousPage(new CreateUrlRequest(Page.START, "tab", Session.getInstance()
                                    .getParameterValue("tab")), "< Return to Start Page");
                            Session.getInstance().getEventBus().notifyObservers(new HideNotificationEvent());
                            setPageTitle("Configure");

                            if (Session.getInstance().getCurrentPersonRoles().contains(Role.SYSTEM_ADMIN))
                            {
                                addGadget.setVisible(Session.getInstance().getParameterValue("galleryTab").equals(
View Full Code Here

Examples of org.eurekastreams.web.client.events.HideNotificationEvent

            Anchor editButton = new Anchor("edit");
            editButton.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
                    Session.getInstance().getEventBus().notifyObservers(new HideNotificationEvent());
                    Dialog.showCentered(new CustomStreamDialogContent(stream));
                    event.stopPropagation();
                }
            });
            editButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().editButton());
View Full Code Here

Examples of org.eurekastreams.web.client.events.HideNotificationEvent

                                    + "Should we move your apps for you?");
                        }

                        if (shouldChange)
                        {
                            Session.getInstance().getEventBus().notifyObservers(new HideNotificationEvent());
                            StartTabsModel.getInstance().setLayout(new SetTabLayoutRequest(layout, tabId));
                        }

                    }
                });
View Full Code Here

Examples of org.eurekastreams.web.client.events.HideNotificationEvent

            addButton.add(addView);
            addView.addClickListener(new ClickListener()
            {
                public void onClick(final Widget arg0)
                {
                    Session.getInstance().getEventBus().notifyObservers(new HideNotificationEvent());
                    Dialog.showCentered(renderer.getDialogContent());
                }
            });

            header.add(addButton);
View Full Code Here

Examples of org.eurekastreams.web.client.events.HideNotificationEvent

                pluginTitle.addClickHandler(new ClickHandler()
                {
                    public void onClick(final ClickEvent event)
                    {
                        // clear the notification in case there was one left over from adding a prior plugin
                        Session.getInstance().getEventBus().notifyObservers(new HideNotificationEvent());

                        selectPlugin(metaDataItem);
                    }
                });
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.