Package org.zkoss.zul

Class SimpleDoubleSpinnerConstraint

    • Constructor Detail

      • SimpleDoubleSpinnerConstraint

        public SimpleDoubleSpinnerConstraint()
        Constraints a constraint.
      • SimpleDoubleSpinnerConstraint

        public SimpleDoubleSpinnerConstraint​(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.lang.Double parseValue​(java.lang.String value)
        Description copied from class: SimpleNumberInputConstraint
        Parse the string value to the specified number type T. This method should be implemented by subclasses to convert a string representation of a number to the appropriate numeric type for this constraint.
        Specified by:
        parseValue in class SimpleNumberInputConstraint<java.lang.Double>
        Parameters:
        value - the string representation of a number
        Returns:
        the parsed number of type T