Package org.apache.isis.core.metamodel.facetapi

Examples of org.apache.isis.core.metamodel.facetapi.FeatureType


        facets.add(new NamedFacetNone(facetedMethod));
        facets.add(new DescribedAsFacetNone(facetedMethod));
        facets.add(new HelpFacetNone(facetedMethod));

       
        final FeatureType featureType = facetedMethod.getFeatureType();
        if (featureType.isProperty()) {
            facets.add(new MaxLengthFacetUnlimited(facetedMethod));
            facets.add(new MultiLineFacetNone(true, facetedMethod));
        }
        if (featureType.isAction()) {
            facets.add(new ActionDefaultsFacetNone(facetedMethod));
            facets.add(new ActionChoicesFacetNone(facetedMethod));
        }
        if (featureType.isCollection()) {
            facets.add(new PagedFacetDefault(facetedMethod, getConfiguration().getInteger("isis.viewers.paged.parented", PAGE_SIZE_PARENTED_DEFAULT)));
        }

        FacetUtil.addFacets(facets);
    }
View Full Code Here


        facets.add(new NamedFacetNone(facetHolder));
        facets.add(new DescribedAsFacetNone(facetHolder));
        facets.add(new HelpFacetNone(facetHolder));


        final FeatureType featureType = facetHolder.getFeatureType();
        if (featureType.isProperty()) {
            facets.add(new MaxLengthFacetUnlimited(facetHolder));
            facets.add(new MultiLineFacetNone(true, facetHolder));

            facets.add(newLabelAtFacetIfAny(facetHolder, "properties", "property", "props", "prop"));
        }
        if (featureType.isAction()) {
            facets.add(new ActionDefaultsFacetNone(facetHolder));
            facets.add(new ActionChoicesFacetNone(facetHolder));
        }
        if (featureType.isCollection()) {
            facets.add(new PagedFacetFromConfiguration(getPagedConfigSetting("parented", PAGE_SIZE_PARENTED_DEFAULT), facetHolder));
        }

        FacetUtil.addFacets(facets);
    }
View Full Code Here

            facets.add(new NamedFacetNone(processMethodContext.getFacetHolder()));
            facets.add(new DescribedAsFacetNone(processMethodContext.getFacetHolder()));
            facets.add(new HelpFacetNone(processMethodContext.getFacetHolder()));

            final FacetedMethod facetedMethod = processMethodContext.getFacetHolder();
            final FeatureType featureType = facetedMethod.getFeatureType();
            if (featureType.isProperty()) {
                facets.add(new MaxLengthFacetUnlimited(processMethodContext.getFacetHolder()));
                facets.add(new MultiLineFacetNone(true, processMethodContext.getFacetHolder()));
            }
            if (featureType.isAction()) {
                facets.add(new ExecutedFacetAtDefault(processMethodContext.getFacetHolder()));
                facets.add(new ActionDefaultsFacetNone(processMethodContext.getFacetHolder()));
                facets.add(new ActionChoicesFacetNone(processMethodContext.getFacetHolder()));
            }
        }
View Full Code Here

            facets.add(new NamedFacetNone(processMethodContext.getFacetHolder()));
            facets.add(new DescribedAsFacetNone(processMethodContext.getFacetHolder()));
            facets.add(new HelpFacetNone(processMethodContext.getFacetHolder()));

            final FacetedMethod facetedMethod = processMethodContext.getFacetHolder();
            final FeatureType featureType = facetedMethod.getFeatureType();
            if (featureType.isProperty()) {
                facets.add(new MaxLengthFacetUnlimited(processMethodContext.getFacetHolder()));
                facets.add(new MultiLineFacetNone(true, processMethodContext.getFacetHolder()));
            }
            if (featureType.isAction()) {
                facets.add(new ExecutedFacetAtDefault(processMethodContext.getFacetHolder()));
                facets.add(new ActionDefaultsFacetNone(processMethodContext.getFacetHolder()));
                facets.add(new ActionChoicesFacetNone(processMethodContext.getFacetHolder()));
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facetapi.FeatureType

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.