Package org.apache.isis.core.metamodel.facets.members.cssclass

Examples of org.apache.isis.core.metamodel.facets.members.cssclass.CssClassFacet


    }

    private static ActionRepr newActionRepr(ObjectSpecification objectSpec, ObjectAction action) {
        ActionRepr actionRepr = new ActionRepr();
       
        CssClassFacet cssClassFacet = action.getFacet(CssClassFacet.class);
        if(cssClassFacet != null && !cssClassFacet.isNoop()) {
            CssClassFacetRepr cssClassFacetRepr = new CssClassFacetRepr();
            cssClassFacetRepr.value = cssClassFacet.value();
            actionRepr.cssClass = cssClassFacetRepr;
        }
        DescribedAsFacet describedAsFacet = action.getFacet(DescribedAsFacet.class);
        if(describedAsFacet != null && !describedAsFacet.isNoop() && !Strings.isNullOrEmpty(describedAsFacet.value())) {
            DescribedAsFacetRepr describedAsFacetRepr = new DescribedAsFacetRepr();
View Full Code Here



    private static MemberRepr newMemberRepr(ObjectSpecification objectSpec, ObjectAssociation assoc, Set<String> actionIdsForAssociations) {
        final MemberRepr memberRepr = new MemberRepr();

        CssClassFacet cssClassFacet = assoc.getFacet(CssClassFacet.class);
        if(cssClassFacet != null && !cssClassFacet.isNoop()) {
            CssClassFacetRepr cssClassFacetRepr = new CssClassFacetRepr();
            cssClassFacetRepr.value = cssClassFacet.value();
            memberRepr.cssClass = cssClassFacetRepr;
        }
        DescribedAsFacet describedAsFacet = assoc.getFacet(DescribedAsFacet.class);
        if(describedAsFacet != null && !describedAsFacet.isNoop() && !Strings.isNullOrEmpty(describedAsFacet.value())) {
            DescribedAsFacetRepr describedAsFacetRepr = new DescribedAsFacetRepr();
View Full Code Here

        super(FeatureType.MEMBERS);
    }

    @Override
    public void process(final ProcessMethodContext processMethodContext) {
        CssClassFacet cssClassFacet = createFromMetadataPropertiesIfPossible(processMethodContext);
        if(cssClassFacet == null) {
            cssClassFacet = createFromAnnotationIfPossible(processMethodContext);
        }
       
        // no-op if null
View Full Code Here

    }

   
    @Override
    public void process(ProcessContributeeMemberContext processMemberContext) {
        CssClassFacet cssClassFacet = createFromMetadataPropertiesIfPossible(processMemberContext);
        // no-op if null
        FacetUtil.addFacet(cssClassFacet);
    }
View Full Code Here

        return helpFacet == null ? null : helpFacet.value();
    }

    @Override
    public String getCssClass() {
        final CssClassFacet cssClassFacet = getFacet(CssClassFacet.class);
        return cssClassFacet == null ? null : cssClassFacet.value();
    }
View Full Code Here

    }

    private static ActionRepr newActionRepr(ObjectSpecification objectSpec, ObjectAction action) {
        ActionRepr actionRepr = new ActionRepr();
       
        CssClassFacet cssClassFacet = action.getFacet(CssClassFacet.class);
        if(cssClassFacet != null && !cssClassFacet.isNoop()) {
            CssClassFacetRepr cssClassFacetRepr = new CssClassFacetRepr();
            cssClassFacetRepr.value = cssClassFacet.value();
            actionRepr.cssClass = cssClassFacetRepr;
        }
        DescribedAsFacet describedAsFacet = action.getFacet(DescribedAsFacet.class);
        if(describedAsFacet != null && !describedAsFacet.isNoop() && !Strings.isNullOrEmpty(describedAsFacet.value())) {
            DescribedAsFacetRepr describedAsFacetRepr = new DescribedAsFacetRepr();
View Full Code Here


    private static MemberRepr newMemberRepr(ObjectSpecification objectSpec, ObjectAssociation assoc, Set<String> actionIdsForAssociations) {
        final MemberRepr memberRepr = new MemberRepr();

        CssClassFacet cssClassFacet = assoc.getFacet(CssClassFacet.class);
        if(cssClassFacet != null && !cssClassFacet.isNoop()) {
            CssClassFacetRepr cssClassFacetRepr = new CssClassFacetRepr();
            cssClassFacetRepr.value = cssClassFacet.value();
            memberRepr.cssClass = cssClassFacetRepr;
        }
        DescribedAsFacet describedAsFacet = assoc.getFacet(DescribedAsFacet.class);
        if(describedAsFacet != null && !describedAsFacet.isNoop() && !Strings.isNullOrEmpty(describedAsFacet.value())) {
            DescribedAsFacetRepr describedAsFacetRepr = new DescribedAsFacetRepr();
View Full Code Here

        super(FeatureType.MEMBERS);
    }

    @Override
    public void process(final ProcessMethodContext processMethodContext) {
        CssClassFacet cssClassFacet = createFromMetadataPropertiesIfPossible(processMethodContext);
        if(cssClassFacet == null) {
            cssClassFacet = createFromAnnotationIfPossible(processMethodContext);
        }
       
        // no-op if null
View Full Code Here

    }

   
    @Override
    public void process(ProcessContributeeMemberContext processMemberContext) {
        CssClassFacet cssClassFacet = createFromMetadataPropertiesIfPossible(processMemberContext);
        // no-op if null
        FacetUtil.addFacet(cssClassFacet);
    }
View Full Code Here

        if (cssForMetaModel != null) {
            add(new AttributeAppender("class", Model.of(cssForMetaModel), " "));
        }

        ScalarModel model = getModel();
        final CssClassFacet facet = model.getFacet(CssClassFacet.class);
        if(facet != null) {
              add(new CssClassAppender(facet.value()));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.members.cssclass.CssClassFacet

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.