Класс 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.