Package org.apache.isis.core.metamodel.facets.propparam.labelat

Examples of org.apache.isis.core.metamodel.facets.propparam.labelat.LabelAtFacet


        super(FeatureType.PROPERTIES_ONLY);
    }

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


     * @param scalarName The label for the input
     * @param formGroup The form group element
     */
    protected void applyLabelAtRule(Label scalarName, MarkupContainer formGroup) {

        final LabelAtFacet facet = getModel().getFacet(LabelAtFacet.class);

        // TODO mgrigorov: Remove this. It is for debugging
        scalarName.add(new AttributeModifier("title", "labelAt=" + (facet != null? facet.value(): "(null)")));

        if (facet != null) {
            switch (facet.value()) {
                case LEFT:
                    formGroup.add(new CssClassAppender("label-left"));
                    break;
                case NONE:
                    scalarName.setVisible(false);
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.propparam.labelat.LabelAtFacet

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.