Package org.zkoss.zul

Class SimpleDoubleSpinnerConstraint

All Implemented Interfaces:
Serializable, ClientConstraint, Constraint

public class SimpleDoubleSpinnerConstraint extends SimpleNumberInputConstraint<Double>
A simple double spinner constraint.
Since:
5.0.6
Author:
jumperchen
See Also:
  • Constructor Details

    • SimpleDoubleSpinnerConstraint

      public SimpleDoubleSpinnerConstraint()
      Constraints a constraint.
    • SimpleDoubleSpinnerConstraint

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

      public SimpleDoubleSpinnerConstraint(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 Details

    • parseValue

      protected Double parseValue(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<Double>
      Parameters:
      value - the string representation of a number
      Returns:
      the parsed number of type T