Package org.eurekastreams.web.client.jsni

Examples of org.eurekastreams.web.client.jsni.GadgetMetaDataFetcher


                            // fetch metadata again to force reevaluation of metadata
                            // (for making sure "edit settings" is hidden, if necessary)
                            List<GadgetDefinition> gadgetDefList = new ArrayList<GadgetDefinition>();
                            gadgetDefList.add(event.getGadget().getGadgetDefinition());
                            (new GadgetMetaDataFetcher(gadgetDefList)).fetchMetaData();
                        }
                    }
                });

    }
View Full Code Here


            List<GadgetDefinition> gadgetDefList = new ArrayList<GadgetDefinition>();
            for (Gadget gadget : gadgets)
            {
                gadgetDefList.add(gadget.getGadgetDefinition());
            }
            (new GadgetMetaDataFetcher(gadgetDefList)).fetchMetaData();
        }
    }
View Full Code Here

                                gadgetDefList.add(gDef);
                                gadgetDefIds.add(gDef.getId());
                            }
                        }

                        GadgetMetaDataFetcher fetcher = new GadgetMetaDataFetcher(gadgetDefList);
                        fetcher.fetchMetaData();

                        thisBuffered.addStyleName(StaticResourceBundle.INSTANCE.coreCss().portalBoundary());

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

                            Session.getInstance().getEventBus().notifyObservers(
                                    new GotGadgetMetaDataEvent(new LinkedList<GadgetMetaDataDTO>()));
                        }
                        else
                        {
                            GadgetMetaDataFetcher fetcher = // \n
                            new GadgetMetaDataFetcher(event.getResponse().getPagedSet());
                            fetcher.fetchMetaData();
                        }
                    }
                });

        Session.getInstance().getEventBus().addObserver(InsertedPluginDefinitionResponseEvent.class,
View Full Code Here

                            Session.getInstance().getEventBus().notifyObservers(
                                    new GotGadgetMetaDataEvent(new LinkedList<GadgetMetaDataDTO>()));
                        }
                        else
                        {
                            GadgetMetaDataFetcher fetcher = // \n
                            new GadgetMetaDataFetcher(event.getResponse().getPagedSet());
                            fetcher.fetchMetaData();
                        }
                    }
                });

        Session.getInstance().getEventBus().addObserver(GotGadgetDefinitionCategoriesResponseEvent.class,
View Full Code Here

                    public void update(final GotStreamPluginSubscriptionsResponseEvent event)
                    {
                        availablePlugins = event.getResponse().getPlugins();
                        feedSubscriptions = event.getResponse().getFeedSubcribers();

                        GadgetMetaDataFetcher gadgetMetaDataFetcher = new GadgetMetaDataFetcher(availablePlugins);
                        gadgetMetaDataFetcher
                                .addOnMetaDataRetrievedCommand(new GadgetMetaDataFetcher.GotGadgetMetaDataCommand()
                                {
                                    public void onGotGadgetMetaData(final List<GadgetMetaDataDTO> inMetadata)
                                    {
                                        metadata = inMetadata;
                                        renderPlugins();
                                        renderFeedSubscriptions();
                                    }
                                });
                        gadgetMetaDataFetcher.fetchMetaData();
                    }
                });

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

TOP

Related Classes of org.eurekastreams.web.client.jsni.GadgetMetaDataFetcher

Copyright © 2018 www.massapicom. 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.