Класс JFormattedTextField.AbstractFormatterFactory
- java.lang.Object
- javax.swing.JFormattedTextField.AbstractFormatterFactory
- Прямые известные подклассы:
DefaultFormatterFactory
- Вложенный класс:
- JFormattedTextField
public abstract static class JFormattedTextField.AbstractFormatterFactory extends Object
Экземпляры AbstractFormatterFactory используются JFormattedTextField для получения экземпляров AbstractFormatter, которые, в свою очередь, используются для форматирования значений. AbstractFormatterFactory может возвращать различные AbstractFormatter в зависимости от состояния JFormattedTextField, возможно, возвращая различные AbstractFormatter при наведении фокуса на JFormattedTextField и при его отсутствии.
- С момента:
- 1.4
Конструкторы
| Конструктор | Описание |
|---|---|
AbstractFormatterFactory() |
Методы
| Модификатор и тип | Метод | Описание |
|---|---|---|
abstract JFormattedTextField.AbstractFormatter | getFormatter(JFormattedTextField tf) | Возвращает |
Методы, объявленные в классе java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitКонструкторы
AbstractFormatterFactory
public AbstractFormatterFactory()
Методы
getFormatter
public abstract JFormattedTextField.AbstractFormatter getFormatter(JFormattedTextField tf)
Возвращает AbstractFormatter, который может обрабатывать форматирование переданного JFormattedTextField.
- Параметры:
-
tf- JFormattedTextField, запрашивающий AbstractFormatter - Возвращает:
- AbstractFormatter для обработки задач форматирования, возвращаемое значение null подразумевает, что JFormattedTextField должен вести себя как обычный JTextField
© 1993, 2020, 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/11/docs/api/java.desktop/javax/swing/JFormattedTextField.AbstractFormatterFactory.html