Examples of SelectItemCategory


Examples of org.exoplatform.webui.core.model.SelectItemCategory

        }
        return null;
    }

    public SelectItemOption getSelectedItemOption() {
        SelectItemCategory selectedCategory = getSelectedCategory();
        if (selectedCategory == null)
            return null;
        return selectedCategory.getSelectedItemOption();
    }
View Full Code Here

Examples of org.exoplatform.webui.core.model.SelectItemCategory

            return null;
        return selectedCategory.getSelectedItemOption();
    }

    public Object getValue() {
        SelectItemCategory selectedCategory = getSelectedCategory();
        if (selectedCategory == null)
            return null;
        SelectItemOption selectedItem = selectedCategory.getSelectedItemOption();
        if (selectedItem == null)
            return null;
        return selectedItem.getValue();
    }
View Full Code Here

Examples of org.exoplatform.webui.core.model.SelectItemCategory

        UserPortalConfigService configService = this.getApplicationComponent(UserPortalConfigService.class);
        List<String> portalTemplates = new ArrayList<String>(configService.getPortalTemplates());
        Collections.sort(portalTemplates);
        for (String tempName : portalTemplates) {
            SelectItemCategory category = new SelectItemCategory(tempName);
            PortalConfig config = configService.getPortalConfigFromTemplate(tempName);
            if (config != null) {
                SelectItemOption<String> option = new SelectItemOption<String>(config.getLabel(), tempName,
                        config.getDescription(), tempName);
                category.addSelectItemOption(option);
                uiTemplateInput.getItemCategories().add(category);
            }
        }
        if (uiTemplateInput.getSelectedItemOption() == null) {
            uiTemplateInput.getItemCategories().get(0).setSelected(true);
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.