Class SimpleDecimalboxConstraint

  • All Implemented Interfaces:
    java.io.Serializable, org.zkoss.zul.ClientConstraint, org.zkoss.zul.Constraint

    public class SimpleDecimalboxConstraint
    extends org.zkoss.zul.SimpleNumberInputConstraint<java.math.BigDecimal>
    A simple decimalbox constraint.
    Since:
    10.2.0
    Author:
    Jamson Chan
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.zkoss.zul.SimpleConstraint

        _finishParseCst, _flags, AFTER_END, AFTER_POINTER, AFTER_START, AT_POINTER, BEFORE_END, BEFORE_START, END_AFTER, END_BEFORE, NO_EMPTY, NO_FUTURE, NO_NEGATIVE, NO_PAST, NO_POSITIVE, NO_TODAY, NO_ZERO, OVERLAP, OVERLAP_AFTER, OVERLAP_BEFORE, OVERLAP_END, SERVER, START_AFTER, START_BEFORE, STRICT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.math.BigDecimal parseValue​(java.lang.String value)  
      • Methods inherited from class org.zkoss.zul.SimpleNumberInputConstraint

        getMax, getMin, outOfRangeValue, parseConstraint, setMax, setMin, validate
      • Methods inherited from class org.zkoss.zul.SimpleConstraint

        getClientConstraint, getClientPackages, getErrorMessage, getFlags, getInstance, getRawValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleDecimalboxConstraint

        public SimpleDecimalboxConstraint()
        Constraints a constraint.
      • SimpleDecimalboxConstraint

        public SimpleDecimalboxConstraint​(int flags)
        Constraints a constraint.
        Parameters:
        flags - a combination of SimpleConstraint.NO_POSITIVE, SimpleConstraint.NO_NEGATIVE, SimpleConstraint.NO_ZERO, and so on.
      • SimpleDecimalboxConstraint

        public SimpleDecimalboxConstraint​(java.lang.String constraint)
        Constructs a constraint with a list of constraints separated by comma.
        Parameters:
        constraint - a list of constraints separated by comma. Example: no positive, no zero
    • Method Detail

      • parseValue

        protected java.math.BigDecimal parseValue​(java.lang.String value)
        Specified by:
        parseValue in class org.zkoss.zul.SimpleNumberInputConstraint<java.math.BigDecimal>