public abstract static class JFormattedTextField.AbstractFormatterFactory extends Object
AbstractFormatterFactory由JFormattedTextField用于获取AbstractFormatter的AbstractFormatter ,而这些AbstractFormatter又用于格式化值。
AbstractFormatterFactory可以根据AbstractFormatter的状态返回不同的JFormattedTextField ,当JFormattedTextField有焦点vs当没有焦点时,也许返回不同的AbstractFormatter 。
| Constructor and Description |
|---|
AbstractFormatterFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract JFormattedTextField.AbstractFormatter |
getFormatter(JFormattedTextField tf)
返回一个
AbstractFormatter ,可以处理在传递的格式
JFormattedTextField 。
|
public abstract JFormattedTextField.AbstractFormatter getFormatter(JFormattedTextField tf)
AbstractFormatter ,可以处理在传递的格式
JFormattedTextField 。
tf - JFormattedTextField请求AbstractFormatter
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.