Examples of SingleIntValueFacet


Examples of org.apache.isis.core.metamodel.facets.SingleIntValueFacet

    private Component setAttribute(final TextArea<String> textField, final String attributeName, final int i) {
        return textField.add(AttributeModifier.replace(attributeName, ""+i));
    }

    private static Integer getValueOf(ScalarModel model, Class<? extends SingleIntValueFacet> facetType) {
        final SingleIntValueFacet facet = model.getFacet(facetType);
        return facet != null ? facet.value() : null;
    }
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.SingleIntValueFacet

            textField.add(new AttributeModifier("maxlength", Model.of("" + maxLength)));
        }
    }

    private static Integer getValueOf(ScalarModel model, Class<? extends SingleIntValueFacet> facetType) {
        final SingleIntValueFacet facet = model.getFacet(facetType);
        return facet != null ? facet.value() : null;
    }
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.SingleIntValueFacet

            textField.add(new AttributeModifier("maxlength", Model.of("" + maxLength)));
        }
    }

    private static Integer getValueOf(ScalarModel model, Class<? extends SingleIntValueFacet> facetType) {
        final SingleIntValueFacet facet = model.getFacet(facetType);
        return facet != null ? facet.value() : null;
    }
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.SingleIntValueFacet

    private Component setAttribute(final TextArea<String> textField, final String attributeName, final int i) {
        return textField.add(AttributeModifier.replace(attributeName, ""+i));
    }

    private static Integer getValueOf(ScalarModel model, Class<? extends SingleIntValueFacet> facetType) {
        final SingleIntValueFacet facet = model.getFacet(facetType);
        return facet != null ? facet.value() : null;
    }
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.SingleIntValueFacet

    private Component setAttribute(final TextArea<String> textField, final String attributeName, final int i) {
        return textField.add(AttributeModifier.replace(attributeName, ""+i));
    }

    private static Integer getValueOf(ScalarModel model, Class<? extends SingleIntValueFacet> facetType) {
        final SingleIntValueFacet facet = model.getFacet(facetType);
        return facet != null ? facet.value() : null;
    }
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.SingleIntValueFacet

            textField.add(new AttributeModifier("maxlength", Model.of("" + maxLength)));
        }
    }

    private static Integer getValueOf(ScalarModel model, Class<? extends SingleIntValueFacet> facetType) {
        final SingleIntValueFacet facet = model.getFacet(facetType);
        return facet != null ? facet.value() : null;
    }
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.SingleIntValueFacet

        return firstValueOf(getModel(), TypicalLengthFacet.class, MaxLengthFacet.class);
    }
   
    private Integer firstValueOf(ScalarModel model, Class<? extends SingleIntValueFacet>... facetTypes) {
        for(Class<? extends SingleIntValueFacet> facetType: facetTypes) {
        final SingleIntValueFacet facet = model.getFacet(facetType);
            if (facet != null) {
                return facet.value();
            }
        }
        return null;
    }
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.