Class StringBasedFileEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor

    public class StringBasedFileEditor
    extends FileChooserEditor
    A PropertyEditor that allows the user to edit strings by way of a File editor, as is done by StringBasedFileEditor. In other words, the user can use the file chooser to pick a file. That file is then turned into a String.

    This class has the restriction that it will only take in String objects and will only give out String objects.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getValue()  
      void setValue​(java.lang.Object value)  
      • Methods inherited from class java.beans.PropertyEditorSupport

        addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringBasedFileEditor

        public StringBasedFileEditor()
    • Method Detail

      • setValue

        public void setValue​(java.lang.Object value)
        Specified by:
        setValue in interface java.beans.PropertyEditor
        Overrides:
        setValue in class FileChooserEditor
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in interface java.beans.PropertyEditor
        Overrides:
        getValue in class FileChooserEditor