org.springframework.beans.propertyeditors
Class URLEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.URLEditor
- All Implemented Interfaces:
- PropertyEditor
- public class URLEditor
- extends PropertyEditorSupport
Editor for java.net.URL, to directly feed a URL property
instead of using a String property.
- Since:
- 15.12.2003
- Author:
- Juergen Hoeller
- See Also:
URL
Constructor Summary |
URLEditor()
Create a new URLEditor,
using the default ResourceEditor underneath. |
URLEditor(ResourceEditor resourceEditor)
Create a new URLEditor,
using the given ResourceEditor underneath. |
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLEditor
public URLEditor()
- Create a new URLEditor,
using the default ResourceEditor underneath.
URLEditor
public URLEditor(ResourceEditor resourceEditor)
- Create a new URLEditor,
using the given ResourceEditor underneath.
- Parameters:
resourceEditor
- the ResourceEditor to use
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getAsText
public String getAsText()
Copyright (C) 2003-2004 The Spring Framework Project.