public class NumberFormatFieldFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NumberFormatFieldFactory.JFormattedNumericField
The JFormattedNumericField class is a special JFormattedTextField case where input values are
either Double or Integer.
|
static class |
NumberFormatFieldFactory.NumberFieldDocument
This class overrides method in the PlainDocument class in order to format the JTextField to numbers.
|
static interface |
NumberFormatFieldFactory.NumberFieldListener
This interface ensures the listener can deal with NumberFieldEvent instances as soon as they are fired by the JFormattedNumericField instance.
|
static class |
NumberFormatFieldFactory.Range |
static class |
NumberFormatFieldFactory.Type |
| Constructor and Description |
|---|
NumberFormatFieldFactory() |
| Modifier and Type | Method and Description |
|---|---|
static NumberFormatFieldFactory.JFormattedNumericField |
createNumberFormatField(int numberOfColumns,
NumberFormatFieldFactory.Type type,
NumberFormatFieldFactory.Range range,
boolean nullAllowed)
This method returns JFormattedNumericField instances with some bounds and number type (integer or double).
|
static NumberFormatFieldFactory.JFormattedNumericField |
createNumberFormatField(NumberFormatFieldFactory.Type type,
NumberFormatFieldFactory.Range range,
boolean nullAllowed)
This method returns JFormattedNumericField instances with some bounds and number type (integer or double).
|
public static NumberFormatFieldFactory.JFormattedNumericField createNumberFormatField(NumberFormatFieldFactory.Type type, NumberFormatFieldFactory.Range range, boolean nullAllowed)
type - a Type enum instance (Integer or Double)range - a Range enum instance (Negative, StrictlyNegative, Positive, StrictlyPositive, All)public static NumberFormatFieldFactory.JFormattedNumericField createNumberFormatField(int numberOfColumns, NumberFormatFieldFactory.Type type, NumberFormatFieldFactory.Range range, boolean nullAllowed)
numberOfColumns - the number of columns in the text fieldtype - a Type enum instance (Integer or Double)range - a Range enum instance (Negative, StrictlyNegative, Positive, StrictlyPositive, All)