Uses of Class
javax.swing.JFormattedTextField.AbstractFormatter
Packages that use JFormattedTextField.AbstractFormatter
Package
Description
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.AbstractFormatterModifier and TypeMethodDescriptionJFormattedTextField.AbstractFormatterFactory.getFormatter(JFormattedTextField tf) Returns anAbstractFormatterthat can handle formatting of the passed inJFormattedTextField.JFormattedTextField.getFormatter()Returns theAbstractFormatterthat is used to format and parse the current value.Methods in javax.swing with parameters of type JFormattedTextField.AbstractFormatterModifier and TypeMethodDescriptionprotected voidJFormattedTextField.setFormatter(JFormattedTextField.AbstractFormatter format) Sets the currentAbstractFormatter.Constructors in javax.swing with parameters of type JFormattedTextField.AbstractFormatterModifierConstructorDescriptionCreates aJFormattedTextFieldwith the specifiedAbstractFormatter. -
Uses of JFormattedTextField.AbstractFormatter in javax.swing.text
Subclasses of JFormattedTextField.AbstractFormatter in javax.swing.textModifier and TypeClassDescriptionclassDateFormatter is anInternationalFormatterthat does its formatting by way of an instance ofjava.text.DateFormat.classDefaultFormatterformats arbitrary objects.classInternationalFormatterextendsDefaultFormatter, using an instance ofjava.text.Formatto handle the conversion to a String, and the conversion from a String.classMaskFormatteris used to format and edit strings.classNumberFormattersubclassesInternationalFormatteradding special behavior for numbers.Methods in javax.swing.text that return JFormattedTextField.AbstractFormatterModifier and TypeMethodDescriptionDefaultFormatterFactory.getDefaultFormatter()Returns theJFormattedTextField.AbstractFormatterto use as a last resort, eg in case a display, edit or nullJFormattedTextField.AbstractFormatterhas not been specified.DefaultFormatterFactory.getDisplayFormatter()Returns theJFormattedTextField.AbstractFormatterto use if theJFormattedTextFieldis 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.AbstractFormatterto use if theJFormattedTextFieldis 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.AbstractFormatterModifier and TypeMethodDescriptionvoidDefaultFormatterFactory.setDefaultFormatter(JFormattedTextField.AbstractFormatter atf) Sets theJFormattedTextField.AbstractFormatterto use as a last resort, eg in case a display, edit or nullJFormattedTextField.AbstractFormatterhas not been specified.voidDefaultFormatterFactory.setDisplayFormatter(JFormattedTextField.AbstractFormatter atf) Sets theJFormattedTextField.AbstractFormatterto use if theJFormattedTextFieldis not being edited and either the value is not-null, or the value is null and a null formatter has has not been specified.voidDefaultFormatterFactory.setEditFormatter(JFormattedTextField.AbstractFormatter atf) Sets theJFormattedTextField.AbstractFormatterto use if theJFormattedTextFieldis being edited and either the value is not-null, or the value is null and a null formatter has has not been specified.voidDefaultFormatterFactory.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.AbstractFormatterModifierConstructorDescriptionDefaultFormatterFactory(JFormattedTextField.AbstractFormatter defaultFormat) Creates aDefaultFormatterFactorywith the specifiedJFormattedTextField.AbstractFormatter.DefaultFormatterFactory(JFormattedTextField.AbstractFormatter defaultFormat, JFormattedTextField.AbstractFormatter displayFormat) Creates aDefaultFormatterFactorywith the specifiedJFormattedTextField.AbstractFormatters.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.