API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. JFormattedTextField.AbstractFormatter View Source
Author(s)
Since
1.4
Version
Serial
Hierarchy
 Object
      JFormattedTextField.AbstractFormatter
Implements
 Serializable
Subclasses
Description
publicabstractstatic abstract class JFormattedTextField.AbstractFormatter
  Instances of AbstractFormatter are used by JFormattedTextField to handle the conversion both from an Object to a String, and back from a String to an Object.
See also:   
Constructors
public JFormattedTextField.AbstractFormatter ()
Methods
Hide/Show inherited methods
protected Object clone () throws CloneNotSupportedException
  Clones the AbstractFormatter.
protected Action getActions ()
  Subclass and override if you wish to provide a custom set of Actions.
protected DocumentFilter getDocumentFilter ()
  Subclass and override if you wish to provide a DocumentFilter to restrict what can be input.
protected JFormattedTextField getFormattedTextField ()
  Returns the current JFormattedTextField the AbstractFormatter is installed on.
protected NavigationFilter getNavigationFilter ()
  Subclass and override if you wish to provide a filter to restrict where the user can navigate to.
public void install (JFormattedTextField ftf)
  Installs the AbstractFormatter onto a particular JFormattedTextField.
protected void invalidEdit ()
  This should be invoked when the user types an invalid character.
protected void setEditValid (boolean valid)
  Invoke this to update the editValid property of the JFormattedTextField.
publicabstract Object stringToValue (String text) throws ParseException
  Parses text returning an arbitrary Object.
public void uninstall ()
  Uninstalls any state the AbstractFormatter may have installed on the JFormattedTextField.
publicabstract String valueToString (Object value) throws ParseException
  Returns the string value to display for value.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar