Examples of IFeatureDemoCategory


Examples of org.apache.myfaces.trinidaddemo.support.IFeatureDemoCategory

     */
    class FeatureCategoryDisclosedStateEvalMap extends EvalMapAdapter {

        @Override
        public Object get(Object key) {
            IFeatureDemoCategory category = (IFeatureDemoCategory) key;

            //if there is no concrete component demo selected yet, disclose the default category
            if (currentFeatureDemo == null &&
                defaultFeatureDisclosedCategoryId.equals(category.getId())) {
                    return true;
            }

            return category != null &&
                   currentFeatureDemo != null &&
                   category.equals(currentFeatureDemo.getCategory());
        }
View Full Code Here

Examples of org.apache.myfaces.trinidaddemo.support.IFeatureDemoCategory

            throw new IllegalArgumentException("Trying to register a null feature demo!");
        }

        _LOG.log(Level.INFO, "Register feature demo '" + featureDemo.getDisplayName() + "' in category '" + categoryName + "'");

        IFeatureDemoCategory category = categoriesRegistry.get(categoryId);
        if (category == null) {
            category = new FeatureDemoCategoryImpl(categoryId, categoryName);

            categories.add(category);
            categoriesRegistry.put(categoryId, category);
        }

        category.addFeatureDemo(featureDemo);
        featuresDemoRegistry.put(featureDemo.getId(), featureDemo);
    }
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.