Class FileChooserEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor
    Direct Known Subclasses:
    StringBasedFileEditor

    public class FileChooserEditor
    extends java.beans.PropertyEditorSupport
    Bean editor to show a text field and a browse button to bring up a File Chooser dialog. This editor is created as a result of get/setFilename() on Options.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAsText()  
      java.awt.Component getCustomEditor()  
      java.lang.Object getValue()  
      void setAsText​(java.lang.String text)  
      void setValue​(java.lang.Object value)  
      boolean supportsCustomEditor()  
      • 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

      • FileChooserEditor

        public FileChooserEditor()
    • Method Detail

      • getAsText

        public java.lang.String getAsText()
        Specified by:
        getAsText in interface java.beans.PropertyEditor
        Overrides:
        getAsText in class java.beans.PropertyEditorSupport
      • getValue

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

        public void setAsText​(java.lang.String text)
                       throws java.lang.IllegalArgumentException
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Overrides:
        setAsText in class java.beans.PropertyEditorSupport
        Throws:
        java.lang.IllegalArgumentException
      • setValue

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

        public boolean supportsCustomEditor()
        Specified by:
        supportsCustomEditor in interface java.beans.PropertyEditor
        Overrides:
        supportsCustomEditor in class java.beans.PropertyEditorSupport
      • getCustomEditor

        public java.awt.Component getCustomEditor()
        Specified by:
        getCustomEditor in interface java.beans.PropertyEditor
        Overrides:
        getCustomEditor in class java.beans.PropertyEditorSupport