Examples of CssClassFaFacet


Examples of org.apache.isis.core.metamodel.facets.members.cssclassfa.CssClassFaFacet

        super(FeatureType.ACTIONS_ONLY);
    }

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

Examples of org.apache.isis.core.metamodel.facets.members.cssclassfa.CssClassFaFacet

    }

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

Examples of org.apache.isis.core.metamodel.facets.members.cssclassfa.CssClassFaFacet

        final AbstractLink link = createLinkWrapper();
       
        final String title = determineTitle();

        final String iconName = adapter.getIconName();
        final CssClassFaFacet cssClassFaFacet = adapter.getSpecification().getFacet(CssClassFaFacet.class);
        if (iconName != null || cssClassFaFacet == null) {
            link.addOrReplace(this.image = newImage(ID_ENTITY_ICON, adapter));
            Components.permanentlyHide(link, ID_ENTITY_FONT_AWESOME);
        } else {
            Label dummy = new Label(ID_ENTITY_FONT_AWESOME, "");
            link.addOrReplace(dummy);
            dummy.add(new CssClassAppender(cssClassFaFacet.value() + " fa-2x"));
            Components.permanentlyHide(link, ID_ENTITY_ICON);
        }

        link.addOrReplace(this.label = newLabel(ID_ENTITY_TITLE, titleAbbreviated(title)));
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.