Package org.apache.tapestry.valid

Examples of org.apache.tapestry.valid.NumberValidator$BigDecimalAdaptor


     * a validator on the fly.
     **/

    public IValidator getValidator()
    {
        NumberValidator validator = new NumberValidator();

        if (minimumBinding != null)
        {
            Number minimum = (Number) minimumBinding.getObject("minimum", Number.class);
            validator.setMinimum(minimum);
        }

        if (maximumBinding != null)
        {
            Number maximum = (Number) maximumBinding.getObject("maximum", Number.class);
            validator.setMaximum(maximum);
        }

        if (requiredBinding != null)
        {
            boolean required = requiredBinding.getBoolean();
            validator.setRequired(required);
        }

        if (typeBinding != null)
        {
          validator.setValueType(typeBinding.getString());
        }
       
        return validator;
    }
View Full Code Here


     * Overrides {@link ValidField#getValidator()}to construct a validator on the fly.
     */

    public IValidator getValidator()
    {
        NumberValidator validator = new NumberValidator();

        if (isParameterBound("minimum"))
            validator.setMinimum(getMinimum());

        if (isParameterBound("maximum"))
            validator.setMaximum(getMaximum());

        if (isParameterBound("required"))
            validator.setRequired(isRequired());

        if (isParameterBound("type"))
            validator.setValueType(getType());

        return validator;
    }
View Full Code Here

     * the fly.
     */

    public IValidator getValidator()
    {
        NumberValidator validator = new NumberValidator();

        if (isParameterBound("minimum")) validator.setMinimum(getMinimum());

        if (isParameterBound("maximum")) validator.setMaximum(getMaximum());

        if (isParameterBound("required")) validator.setRequired(isRequired());

        if (isParameterBound("type")) validator.setValueType(getType());

        return validator;
    }
View Full Code Here

     * a validator on the fly.
     **/

    public IValidator getValidator()
    {
        NumberValidator validator = new NumberValidator();

        if (minimumBinding != null)
        {
            Number minimum = (Number) minimumBinding.getObject("minimum", Number.class);
            validator.setMinimum(minimum);
        }

        if (maximumBinding != null)
        {
            Number maximum = (Number) maximumBinding.getObject("maximum", Number.class);
            validator.setMaximum(maximum);
        }

        if (requiredBinding != null)
        {
            boolean required = requiredBinding.getBoolean();
            validator.setRequired(required);
        }

        return validator;
    }
View Full Code Here

     * a validator on the fly.
     **/

    public IValidator getValidator()
    {
        NumberValidator validator = new NumberValidator();

        if (minimumBinding != null)
        {
            Number minimum = (Number) minimumBinding.getObject("minimum", Number.class);
            validator.setMinimum(minimum);
        }

        if (maximumBinding != null)
        {
            Number maximum = (Number) maximumBinding.getObject("maximum", Number.class);
            validator.setMaximum(maximum);
        }

        if (requiredBinding != null)
        {
            boolean required = requiredBinding.getBoolean();
            validator.setRequired(required);
        }

        if (typeBinding != null)
        {
          validator.setValueType(typeBinding.getString());
        }
       
        return validator;
    }
View Full Code Here

     * a validator on the fly.
     **/

    public IValidator getValidator()
    {
        NumberValidator validator = new NumberValidator();

        if (minimumBinding != null)
        {
            Number minimum = (Number) minimumBinding.getObject("minimum", Number.class);
            validator.setMinimum(minimum);
        }

        if (maximumBinding != null)
        {
            Number maximum = (Number) maximumBinding.getObject("maximum", Number.class);
            validator.setMaximum(maximum);
        }

        if (requiredBinding != null)
        {
            boolean required = requiredBinding.getBoolean();
            validator.setRequired(required);
        }

        if (typeBinding != null)
        {
          validator.setValueType(typeBinding.getString());
        }
       
        return validator;
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.valid.NumberValidator$BigDecimalAdaptor

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.