API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. DefaultFormatterFactory View Source
Author(s)
Since
1.4
Version
1.10 04/07/06
Serial
Hierarchy
 Object
      JFormattedTextField.AbstractFormatterFactory
          DefaultFormatterFactory
Implements
 Serializable
Subclasses
Description
public class DefaultFormatterFactory
  An implementation of JFormattedTextField.AbstractFormatterFactory.
See also:    JFormattedTextField
Constructors
public DefaultFormatterFactory ()
public DefaultFormatterFactory (AbstractFormatter defaultFormat)
  Creates a DefaultFormatterFactory with the specified JFormattedTextField.AbstractFormatter.
public DefaultFormatterFactory (AbstractFormatter defaultFormat, AbstractFormatter displayFormat)
  Creates a DefaultFormatterFactory with the specified JFormattedTextField.AbstractFormatters.
public DefaultFormatterFactory (AbstractFormatter defaultFormat, AbstractFormatter displayFormat, AbstractFormatter editFormat)
  Creates a DefaultFormatterFactory with the specified JFormattedTextField.AbstractFormatters.
public DefaultFormatterFactory (AbstractFormatter defaultFormat, AbstractFormatter displayFormat, AbstractFormatter editFormat, AbstractFormatter nullFormat)
  Creates a DefaultFormatterFactory with the specified JFormattedTextField.AbstractFormatters.
Methods
Hide/Show inherited methods
public AbstractFormatter getDefaultFormatter ()
  Returns the JFormattedTextField.AbstractFormatter to use as a last resort, eg in case a display, edit or null JFormattedTextField.AbstractFormatter has not been specified.
public AbstractFormatter getDisplayFormatter ()
  Returns the JFormattedTextField.AbstractFormatter to use if the JFormattedTextField 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.
public AbstractFormatter getEditFormatter ()
  Returns the JFormattedTextField.AbstractFormatter to use if the JFormattedTextField is being edited and either the value is not-null, or the value is null and a null formatter has has not been specified.
public AbstractFormatter getFormatter (JFormattedTextField source) [Specified in JFormattedTextField.AbstractFormatterFactory]
  Returns either the default formatter, display formatter, editor formatter or null formatter based on the state of the JFormattedTextField.
public AbstractFormatter getNullFormatter ()
  Returns the formatter to use if the value is null.
public void setDefaultFormatter (AbstractFormatter atf)
  Sets the JFormattedTextField.AbstractFormatter to use as a last resort, eg in case a display, edit or null JFormattedTextField.AbstractFormatter has not been specified.
public void setDisplayFormatter (AbstractFormatter atf)
  Sets the JFormattedTextField.AbstractFormatter to use if the JFormattedTextField 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.
public void setEditFormatter (AbstractFormatter atf)
  Sets the JFormattedTextField.AbstractFormatter to use if the JFormattedTextField is being edited and either the value is not-null, or the value is null and a null formatter has has not been specified.
public void setNullFormatter (AbstractFormatter atf)
  Sets the formatter to use if the value of the JFormattedTextField is null.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar