Package docking.widgets.numberformat
Class BoundedRangeDecimalFormatterFactory
- java.lang.Object
-
- javax.swing.JFormattedTextField.AbstractFormatterFactory
-
- javax.swing.text.DefaultFormatterFactory
-
- docking.widgets.numberformat.BoundedRangeDecimalFormatterFactory
-
- All Implemented Interfaces:
java.io.Serializable
public class BoundedRangeDecimalFormatterFactory extends javax.swing.text.DefaultFormatterFactory
Bounded range factory for formatters with a min and max allowed value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BoundedRangeDecimalFormatterFactory(java.lang.Double upperRangeValue, java.lang.Double lowerRangeValue, java.lang.String numberFormat)
ConstructorBoundedRangeDecimalFormatterFactory(java.lang.String numberFormat)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JFormattedTextField.AbstractFormatter
getFormatter(javax.swing.JFormattedTextField tf)
-
-
-
Constructor Detail
-
BoundedRangeDecimalFormatterFactory
public BoundedRangeDecimalFormatterFactory(java.lang.String numberFormat)
Constructor- Parameters:
numberFormat
- a format string compatible withDecimalFormat
-
BoundedRangeDecimalFormatterFactory
public BoundedRangeDecimalFormatterFactory(java.lang.Double upperRangeValue, java.lang.Double lowerRangeValue, java.lang.String numberFormat)
Constructor- Parameters:
upperRangeValue
- the max value allowedlowerRangeValue
- the min value allowednumberFormat
- a format string compatible withDecimalFormat
-
-