Class XFileChooserEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor

    public class XFileChooserEditor
    extends java.beans.PropertyEditorSupport
    An editor to set the current Directory and selected file. Used during customization via a bean editor.
    See Also:
    #XFileChooserBeanInfo
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAsText()
      Gets the String representation of XFile object
      void setAsText​(java.lang.String text)
      Sets the selected file path
      • Methods inherited from class java.beans.PropertyEditorSupport

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

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

      • XFileChooserEditor

        public XFileChooserEditor()
    • Method Detail

      • getAsText

        public java.lang.String getAsText()
        Gets the String representation of XFile object
        Specified by:
        getAsText in interface java.beans.PropertyEditor
        Overrides:
        getAsText in class java.beans.PropertyEditorSupport
        Returns:
        String name of XFile object
      • setAsText

        public void setAsText​(java.lang.String text)
                       throws java.lang.IllegalArgumentException
        Sets the selected file path
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Overrides:
        setAsText in class java.beans.PropertyEditorSupport
        Parameters:
        String - name of file path
        Throws:
        java.lang.IllegalArgumentException