Package org.eurekastreams.web.client.ui.common.pagedlist

Examples of org.eurekastreams.web.client.ui.common.pagedlist.GadgetMetaDataRenderer


        Session.getInstance().getEventBus().addObserver(GotGadgetDefinitionCategoriesResponseEvent.class,
                new Observer<GotGadgetDefinitionCategoriesResponseEvent>()
                {
                    public void update(final GotGadgetDefinitionCategoriesResponseEvent event)
                    {
                        gadgetTab.addSet("All", GadgetDefinitionModel.getInstance(), new GadgetMetaDataRenderer(),
                                new GetGalleryItemsRequest("recent", "", 0, 0), "Recent");
                        gadgetTab.addSet("All", GadgetDefinitionModel.getInstance(), new GadgetMetaDataRenderer(),
                                new GetGalleryItemsRequest("popularity", "", 0, 0), "Popular");

                        for (String category : event.getResponse())
                        {
                            gadgetTab.addSet(category, GadgetDefinitionModel.getInstance(),
                                    new GadgetMetaDataRenderer(), new GetGalleryItemsRequest("recent", category, 0, 0),
                                    "Recent");
                            gadgetTab.addSet(category, GadgetDefinitionModel.getInstance(),
                                    new GadgetMetaDataRenderer(), new GetGalleryItemsRequest("popularity", category, 0,
                                            0), "Popular");
                        }

                        Session.getInstance().getEventBus().removeObserver(
                                GotGadgetDefinitionCategoriesResponseEvent.class, this);
View Full Code Here

TOP

Related Classes of org.eurekastreams.web.client.ui.common.pagedlist.GadgetMetaDataRenderer

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.