de.sciss.gui
Class TimeFormatter
java.lang.Object
javax.swing.JFormattedTextField.AbstractFormatter
javax.swing.text.DefaultFormatter
de.sciss.gui.TimeFormatter
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class TimeFormatter
- extends javax.swing.text.DefaultFormatter
- Version:
- 0.37, 25-Feb-08
- See Also:
- Serialized Form
Methods inherited from class javax.swing.text.DefaultFormatter |
clone, getAllowsInvalid, getCommitsOnValidEdit, getOverwriteMode, getValueClass, install, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass |
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter |
getActions, invalidEdit, setEditValid, uninstall |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeFormatter
public TimeFormatter()
setFormat
public void setFormat(TimeFormat tf)
stringToValue
public java.lang.Object stringToValue(java.lang.String string)
throws java.text.ParseException
- Overrides:
stringToValue
in class javax.swing.text.DefaultFormatter
- Throws:
java.text.ParseException
valueToString
public java.lang.String valueToString(java.lang.Object value)
throws java.text.ParseException
- Overrides:
valueToString
in class javax.swing.text.DefaultFormatter
- Throws:
java.text.ParseException
getFormattedTextField
protected javax.swing.JFormattedTextField getFormattedTextField()
- Overrides:
getFormattedTextField
in class javax.swing.JFormattedTextField.AbstractFormatter
getDocumentFilter
protected javax.swing.text.DocumentFilter getDocumentFilter()
- Overrides:
getDocumentFilter
in class javax.swing.text.DefaultFormatter
getNavigationFilter
protected javax.swing.text.NavigationFilter getNavigationFilter()
- Overrides:
getNavigationFilter
in class javax.swing.text.DefaultFormatter