Package org.jahia.services.uicomponents.bean.toolbar

Examples of org.jahia.services.uicomponents.bean.toolbar.Item


        }
        String title = itemTitle;


        // create the toolitem
        Item item = new Item();
        item.setTitle(title);
        item.setActionItem(new RedirectWindowActionItem());
        item.setDisplayTitle(true);

        // add url property
        Property property = new Property();
        property.setName("js.url");
        property.setValue(jsParamName);
        item.addProperty(property);




        return item;
View Full Code Here


            final Set<String> languageSettings = currentSite != null ? currentSite.getLanguages() : null;
            if (languageSettings != null && languageSettings.size() > 0) {
                final TreeSet<String> orderedLangs = new TreeSet<String>();
                orderedLangs.addAll(languageSettings);
                for (String lang : orderedLangs) {
                    Item item = createJsRedirectItem(getDisplayName(lang), lang);
                    // add to itemsgroup
                    if (item != null) {
                        String minIconStyle = getLangIconStyle(lang);
                        item.setIcon(minIconStyle);

                        if (selectedLang != null) {
                            if (selectedLang.getLanguage().equals(LanguageCodeConverters.languageCodeToLocale(lang))) {
                                Selected s = new Selected();
                                s.setValue(true);
                                item.setSelected(s);
                            }
                        }
                        // add to group lis
                        items.add(item);
                    }
View Full Code Here

            JahiaGroupManagerService jahiaGroupManagerService = ServicesRegistry.getInstance().getJahiaGroupManagerService();
            List<JahiaSite> sitesList = jahiaGroupManagerService.getAdminGrantedSites(user);
            if (sitesList != null && sitesList.size() > 1) {
                for (JahiaSite site : sitesList) {
                    if (site.getHomePageID() > -1) {
                        Item item = null;
                    }
                }
            }
        } catch (JahiaException e) {
            logger.error("JahiaException: Error while creating change site link", e);
View Full Code Here

TOP

Related Classes of org.jahia.services.uicomponents.bean.toolbar.Item

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.