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

Examples of org.apache.isis.core.metamodel.facets.propparam.multiline.MultiLineFacet


            String.class);
    }

    @Override
    public Component createComponent(final String id, final ScalarModel scalarModel) {
        final MultiLineFacet multiLineFacet = scalarModel.getFacet(MultiLineFacet.class);
        if (multiLineFacet != null && !multiLineFacet.isNoop()) {
            return new MultiLineStringPanel(id, scalarModel);
        } else {
            return new StringPanel(id, scalarModel);
        }
    }
View Full Code Here


                }
            }
        });
       

        final MultiLineFacet multiLineFacet = getModel().getFacet(MultiLineFacet.class);
        setAttribute(textField, "rows", multiLineFacet.numberOfLines());
       
       
        final Integer maxLength = getValueOf(getModel(), MaxLengthFacet.class);
        if(maxLength != null) {
            // in conjunction with javascript in jquery.isis.wicket.viewer.js
View Full Code Here

        return facet != null ? facet.value() : null;
    }


    public int getNumberOfLines(final ScalarModel scalarModel) {
        final MultiLineFacet multiLineFacet = scalarModel.getFacet(MultiLineFacet.class);
        int numberOfLines = 1;
       
        if (multiLineFacet != null) {
            numberOfLines = multiLineFacet.numberOfLines();
        }
       
        return numberOfLines;
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.propparam.multiline.MultiLineFacet

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.