Class NumberTextField.BoundedNumberCheckModel

    • Field Detail

      • m_LowerBound

        protected Number m_LowerBound
        the lower bound (null for unbounded).
      • m_UpperBound

        protected Number m_UpperBound
        the upper bound (null for unbounded).
    • Constructor Detail

      • BoundedNumberCheckModel

        public BoundedNumberCheckModel​(NumberTextField.Type type,
                                       Number lower,
                                       Number upper)
        Initializes the model with 0 as default value.
        Parameters:
        type - the type of number to handle
        lower - the lower bound (null for unbounded)
        upper - the upper bound (null for unbounded)
      • BoundedNumberCheckModel

        public BoundedNumberCheckModel​(NumberTextField.Type type,
                                       Number lower,
                                       Number upper,
                                       Number defValue)
        Initializes the model with the specified default value.
        Parameters:
        type - the type of number to handle
        lower - the lower bound (null for unbounded)
        upper - the upper bound (null for unbounded)
        defValue - the default value, use "null" to use as null
    • Method Detail

      • getLowerBound

        public Number getLowerBound()
        Returns the lower bound, if any.
        Returns:
        the lower bound, null if unbounded
      • getUpperBound

        public Number getUpperBound()
        Returns the upper bound, if any.
        Returns:
        the upper bound, null if unbounded