getFormatter
getFormatter: (JFormattedTextField) -> anyThe formatter its factory gives it now.
JFormattedTextField.new()| Method | Returns | Description |
|---|---|---|
getFormatter() | any | The formatter its factory gives it now. |
getFormatterFactory() | any | Its formatter factory. |
setFormatterFactory(any) | () | Sets the factory; its formatter shows the value. |
setValue(any) | () | The value, shown through the formatter (a factory for its type is made when the field has none). |
new() | JFormattedTextField | An empty formatted field (no value, no formatter until setValue or setFormatterFactory). |
init(JFormattedTextField) | () | An empty formatted field (no value, no formatter until setValue or setFormatterFactory). |
isInstance(any) | boolean | Whether obj is a JFormattedTextField object, a class(JFormattedTextField) subclass's included. |
| Field | Type | Description |
|---|---|---|
COMMIT | number | JFormattedTextField.COMMIT: a focus loss commits a valid edit and keeps an invalid one (0). |
COMMIT_OR_REVERT | number | JFormattedTextField.COMMIT_OR_REVERT: a focus loss commits a valid edit and reverts an invalid one (1, the default). |
REVERT | number | JFormattedTextField.REVERT: a focus loss reverts the edit (2). |
PERSIST | number | JFormattedTextField.PERSIST: a focus loss keeps the edit as it is (3). |
AbstractFormatter | JFormattedTextFieldAbstractFormatterClass | JFormattedTextField.AbstractFormatter: the nested class's table (the Swing prelude's). |
AbstractFormatterFactory | JFormattedTextFieldAbstractFormatterFactoryClass | JFormattedTextField.AbstractFormatterFactory: the nested class's table (the Swing prelude's). |
super | JTextFieldClass | JTextField's class table: the base class. |
| Method | Returns | Description |
|---|---|---|
JFormattedTextFieldClass.new | JFormattedTextField | An empty formatted field (no value, no formatter until setValue or setFormatterFactory). |
getFormattergetFormatter: (JFormattedTextField) -> anyThe formatter its factory gives it now.
getFormatterFactorygetFormatterFactory: (JFormattedTextField) -> anyIts formatter factory.
setFormatterFactorysetFormatterFactory: (JFormattedTextField, any) -> ()Sets the factory; its formatter shows the value.
setValuesetValue: (JFormattedTextField, any) -> ()The value, shown through the formatter (a factory for its type is made when the field has none).
newnew: () -> JFormattedTextFieldAn empty formatted field (no value, no formatter until setValue or setFormatterFactory).
initinit: (JFormattedTextField) -> ()An empty formatted field (no value, no formatter until setValue or setFormatterFactory).
isInstanceisInstance: (any) -> booleanWhether obj is a JFormattedTextField object, a class(JFormattedTextField) subclass's included.