Package docking.widgets.numberformat
Class BoundedRangeDecimalFormatterFactory
java.lang.Object
javax.swing.JFormattedTextField.AbstractFormatterFactory
javax.swing.text.DefaultFormatterFactory
docking.widgets.numberformat.BoundedRangeDecimalFormatterFactory
- All Implemented Interfaces:
Serializable
Bounded range factory for formatters with a min and max allowed value.
- See Also:
-
Constructor Summary
ConstructorDescriptionBoundedRangeDecimalFormatterFactory
(Double upperRangeValue, Double lowerRangeValue, String numberFormat) ConstructorBoundedRangeDecimalFormatterFactory
(String numberFormat) Constructor -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class javax.swing.text.DefaultFormatterFactory
getDefaultFormatter, getDisplayFormatter, getEditFormatter, getNullFormatter, setDefaultFormatter, setDisplayFormatter, setEditFormatter, setNullFormatter
-
Constructor Details
-
BoundedRangeDecimalFormatterFactory
Constructor- Parameters:
numberFormat
- a format string compatible withDecimalFormat
-
BoundedRangeDecimalFormatterFactory
public BoundedRangeDecimalFormatterFactory(Double upperRangeValue, Double lowerRangeValue, String numberFormat) Constructor- Parameters:
upperRangeValue
- the max value allowedlowerRangeValue
- the min value allowednumberFormat
- a format string compatible withDecimalFormat
-
-
Method Details
-
getFormatter
- Overrides:
getFormatter
in classDefaultFormatterFactory
-