org.progeeks.meta.swing
Class JFormatAdapter

java.lang.Object
  extended by javax.swing.JFormattedTextField.AbstractFormatter
      extended by javax.swing.text.DefaultFormatter
          extended by org.progeeks.meta.swing.JFormatAdapter
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class JFormatAdapter
extends javax.swing.text.DefaultFormatter

Adapts a PropertyFormat to the Formatter support for the JFormattedTextField.

Version:
$Revision: 1.2 $
Author:
Paul Speed
See Also:
Serialized Form

Constructor Summary
JFormatAdapter(PropertyFormat format)
           
 
Method Summary
 java.lang.Object stringToValue(java.lang.String s)
           
 java.lang.String valueToString(java.lang.Object value)
           
 
Methods inherited from class javax.swing.text.DefaultFormatter
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, install, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass
 
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
getActions, getFormattedTextField, invalidEdit, setEditValid, uninstall
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JFormatAdapter

public JFormatAdapter(PropertyFormat format)
Method Detail

stringToValue

public java.lang.Object stringToValue(java.lang.String s)
Overrides:
stringToValue in class javax.swing.text.DefaultFormatter

valueToString

public java.lang.String valueToString(java.lang.Object value)
Overrides:
valueToString in class javax.swing.text.DefaultFormatter


Copyright © 2002-2003 Paul Speed. All Rights Reserved.