org.springframework.beans.propertyeditors
Class FileEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.springframework.beans.propertyeditors.FileEditor
All Implemented Interfaces:
PropertyEditor

public class FileEditor
extends PropertyEditorSupport

Editor for java.io.File, to directly populate a File property instead of using a String file name property as bridge.

Supports any pathname accepted by the File(pathname) constructor.

Since:
09.12.2003
Author:
Juergen Hoeller
See Also:
File.File(String)

Constructor Summary
FileEditor()
           
 
Method Summary
 String getAsText()
           
 void setAsText(String text)
           
 
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

FileEditor

public FileEditor()
Method Detail

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport


Copyright (c) 2002-2005 The Spring Framework Project.