Package de.sciss.gui

Class TimeFormatter

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class TimeFormatter
    extends javax.swing.text.DefaultFormatter
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeFormatter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.text.DocumentFilter getDocumentFilter()  
      protected javax.swing.JFormattedTextField getFormattedTextField()  
      protected javax.swing.text.NavigationFilter getNavigationFilter()  
      void setFormat​(TimeFormat tf)  
      java.lang.Object stringToValue​(java.lang.String string)  
      java.lang.String valueToString​(java.lang.Object value)  
      • 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
    • Constructor Detail

      • TimeFormatter

        public TimeFormatter()
    • Method Detail

      • 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