DefaultFormatterFactory
JFormattedTextField
public abstract static class JFormattedTextField.AbstractFormatterFactory extends Object
AbstractFormatterFactory
are used by JFormattedTextField
to obtain instances of AbstractFormatter
which in turn are used to format values. AbstractFormatterFactory
can return different AbstractFormatter
s based on the state of the JFormattedTextField
, perhaps returning different AbstractFormatter
s when the JFormattedTextField
has focus vs when it doesn't have focus.Modifier | Constructor | Description |
---|---|---|
protected |
Constructor for subclasses to call. |
Modifier and Type | Method | Description |
---|---|---|
abstract JFormattedTextField.AbstractFormatter |
getFormatter |
Returns an AbstractFormatter that can handle formatting of the passed in JFormattedTextField . |
protected AbstractFormatterFactory()
public abstract JFormattedTextField.AbstractFormatter getFormatter(JFormattedTextField tf)
AbstractFormatter
that can handle formatting of the passed in JFormattedTextField
.tf
- JFormattedTextField requesting AbstractFormatter
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/JFormattedTextField.AbstractFormatterFactory.html