org.springframework.beans.propertyeditors
Class FileEditor
java.lang.Object
java.beans.PropertyEditorSupport
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)
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 |
FileEditor
public FileEditor()
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-2006 The Spring Framework Project.