Package org.zkoss.zul

Class SimpleSpinnerConstraint

All Implemented Interfaces:
Serializable, ClientConstraint, Constraint

public class SimpleSpinnerConstraint extends SimpleNumberInputConstraint<Integer>
A simple spinner constraint.
Since:
3.5.0
Author:
gracelin
See Also:
  • Constructor Details

    • SimpleSpinnerConstraint

      public SimpleSpinnerConstraint()
      Constraints a constraint.
    • SimpleSpinnerConstraint

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

      public SimpleSpinnerConstraint(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 Integer 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<Integer>
      Parameters:
      value - the string representation of a number
      Returns:
      the parsed number of type T