com.panayotis.jubler.time
Class SecondsFormatter

java.lang.Object
  extended by javax.swing.JFormattedTextField.AbstractFormatter
      extended by javax.swing.text.DefaultFormatter
          extended by javax.swing.text.MaskFormatter
              extended by com.panayotis.jubler.time.SecondsFormatter
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SecondsFormatter
extends javax.swing.text.MaskFormatter

See Also:
Serialized Form

Constructor Summary
SecondsFormatter()
           
 
Method Summary
 java.lang.Object stringToValue(java.lang.String text)
           
 java.lang.String valueToString(java.lang.Object value)
           
 
Methods inherited from class javax.swing.text.MaskFormatter
getInvalidCharacters, getMask, getPlaceholder, getPlaceholderCharacter, getValidCharacters, getValueContainsLiteralCharacters, install, setInvalidCharacters, setMask, setPlaceholder, setPlaceholderCharacter, setValidCharacters, setValueContainsLiteralCharacters
 
Methods inherited from class javax.swing.text.DefaultFormatter
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, 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

SecondsFormatter

public SecondsFormatter()
                 throws java.text.ParseException
Throws:
java.text.ParseException
Method Detail

stringToValue

public java.lang.Object stringToValue(java.lang.String text)
                               throws java.text.ParseException
Overrides:
stringToValue in class javax.swing.text.MaskFormatter
Throws:
java.text.ParseException

valueToString

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