jfun.util.beans
Class FileEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by jfun.util.beans.FileEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class FileEditor
extends java.beans.PropertyEditorSupport

The PropertyEditor that converts between String and File. The current directory is determined by WorkingDirectory.

Author:
Ben Yu

Constructor Summary
FileEditor()
           
FileEditor(java.lang.Object source)
           
 
Method Summary
 java.lang.String getAsText()
           
 void setAsText(java.lang.String text)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEditor

public FileEditor()

FileEditor

public FileEditor(java.lang.Object source)
Method Detail

getAsText

public java.lang.String getAsText()
Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText 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