Uses of Class
javax.swing.JFormattedTextField.AbstractFormatter
Packages that use JFormattedTextField.AbstractFormatter
包
描述
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
-
Uses of JFormattedTextField.AbstractFormatter in javax.swing
Methods in javax.swing that return JFormattedTextField.AbstractFormatter修饰符和类方法描述JFormattedTextField.AbstractFormatterFactory.getFormatter
(JFormattedTextField tf) Returns anAbstractFormatter
that can handle formatting of the passed inJFormattedTextField
.JFormattedTextField.getFormatter()
Returns theAbstractFormatter
that is used to format and parse the current value.Methods in javax.swing with parameters of type JFormattedTextField.AbstractFormatter修饰符和类方法描述protected void
JFormattedTextField.setFormatter
(JFormattedTextField.AbstractFormatter format) Sets the currentAbstractFormatter
.Constructors in javax.swing with parameters of type JFormattedTextField.AbstractFormatterModifierConstructor描述Creates aJFormattedTextField
with the specifiedAbstractFormatter
. -
Uses of JFormattedTextField.AbstractFormatter in javax.swing.text
Subclasses of JFormattedTextField.AbstractFormatter in javax.swing.text修饰符和类Class描述class
DateFormatter is anInternationalFormatter
that does its formatting by way of an instance ofjava.text.DateFormat
.class
DefaultFormatter
formats arbitrary objects.class
InternationalFormatter
extendsDefaultFormatter
, using an instance ofjava.text.Format
to handle the conversion to a String, and the conversion from a String.class
MaskFormatter
is used to format and edit strings.class
NumberFormatter
subclassesInternationalFormatter
adding special behavior for numbers.Methods in javax.swing.text that return JFormattedTextField.AbstractFormatter修饰符和类方法描述DefaultFormatterFactory.getDefaultFormatter()
Returns theJFormattedTextField.AbstractFormatter
to use as a last resort, eg in case a display, edit or nullJFormattedTextField.AbstractFormatter
has not been specified.DefaultFormatterFactory.getDisplayFormatter()
Returns theJFormattedTextField.AbstractFormatter
to use if theJFormattedTextField
is not being edited and either the value is not-null, or the value is null and a null formatter has has not been specified.DefaultFormatterFactory.getEditFormatter()
Returns theJFormattedTextField.AbstractFormatter
to use if theJFormattedTextField
is being edited and either the value is not-null, or the value is null and a null formatter has has not been specified.DefaultFormatterFactory.getFormatter
(JFormattedTextField source) Returns either the default formatter, display formatter, editor formatter or null formatter based on the state of the JFormattedTextField.DefaultFormatterFactory.getNullFormatter()
Returns the formatter to use if the value is null.Methods in javax.swing.text with parameters of type JFormattedTextField.AbstractFormatter修饰符和类方法描述void
DefaultFormatterFactory.setDefaultFormatter
(JFormattedTextField.AbstractFormatter atf) Sets theJFormattedTextField.AbstractFormatter
to use as a last resort, eg in case a display, edit or nullJFormattedTextField.AbstractFormatter
has not been specified.void
DefaultFormatterFactory.setDisplayFormatter
(JFormattedTextField.AbstractFormatter atf) Sets theJFormattedTextField.AbstractFormatter
to use if theJFormattedTextField
is not being edited and either the value is not-null, or the value is null and a null formatter has has not been specified.void
DefaultFormatterFactory.setEditFormatter
(JFormattedTextField.AbstractFormatter atf) Sets theJFormattedTextField.AbstractFormatter
to use if theJFormattedTextField
is being edited and either the value is not-null, or the value is null and a null formatter has has not been specified.void
DefaultFormatterFactory.setNullFormatter
(JFormattedTextField.AbstractFormatter atf) Sets the formatter to use if the value of the JFormattedTextField is null.Constructors in javax.swing.text with parameters of type JFormattedTextField.AbstractFormatterModifierConstructor描述DefaultFormatterFactory
(JFormattedTextField.AbstractFormatter defaultFormat) Creates aDefaultFormatterFactory
with the specifiedJFormattedTextField.AbstractFormatter
.DefaultFormatterFactory
(JFormattedTextField.AbstractFormatter defaultFormat, JFormattedTextField.AbstractFormatter displayFormat) Creates aDefaultFormatterFactory
with the specifiedJFormattedTextField.AbstractFormatter
s.DefaultFormatterFactory
(JFormattedTextField.AbstractFormatter defaultFormat, JFormattedTextField.AbstractFormatter displayFormat, JFormattedTextField.AbstractFormatter editFormat) Creates a DefaultFormatterFactory with the specified JFormattedTextField.AbstractFormatters.DefaultFormatterFactory
(JFormattedTextField.AbstractFormatter defaultFormat, JFormattedTextField.AbstractFormatter displayFormat, JFormattedTextField.AbstractFormatter editFormat, JFormattedTextField.AbstractFormatter nullFormat) Creates a DefaultFormatterFactory with the specified JFormattedTextField.AbstractFormatters.