// setup the params to set when the tab is activated
Map<String, String> gadgetTabParams = new HashMap<String, String>();
gadgetTabParams.put(PagedListPanel.URL_PARAM_LIST_ID, "gadgets");
gadgetTabParams.put(Pager.URL_PARAM_START_INDEX, "0");
SimpleTab gadgetSimpleTab = new SimpleTab("Apps", gadgetTab);
gadgetSimpleTab.setParamsToSet(gadgetTabParams);
gadgetSimpleTab.setParamsToClear(Pager.URL_PARAM_END_INDEX);
portalPage.addTab(gadgetSimpleTab);
// setup the params to set when the tab is activated
Map<String, String> themeTabParams = new HashMap<String, String>();
themeTabParams.put(PagedListPanel.URL_PARAM_LIST_ID, "themes");
themeTabParams.put(Pager.URL_PARAM_START_INDEX, "0");
SimpleTab themeSimpleTab = new SimpleTab("Themes", themeTab);
themeSimpleTab.setParamsToSet(themeTabParams);
themeSimpleTab.setParamsToClear(Pager.URL_PARAM_START_INDEX, Pager.URL_PARAM_END_INDEX);
portalPage.addTab(themeSimpleTab);
// setup the params to set when the tab is activated
Map<String, String> tabTemplateTabParams = new HashMap<String, String>();
tabTemplateTabParams.put(PagedListPanel.URL_PARAM_LIST_ID, "tabs");
tabTemplateTabParams.put(Pager.URL_PARAM_START_INDEX, "0");
SimpleTab tabSimpleTab = new SimpleTab("Tabs", tabTemplateTab);
tabSimpleTab.setParamsToSet(tabTemplateTabParams);
tabSimpleTab.setParamsToClear(Pager.URL_PARAM_START_INDEX, Pager.URL_PARAM_END_INDEX);
portalPage.addTab(tabSimpleTab);
galleryPortalContainer.add(portalPage);
portalPage.init();