public class URLEditor extends PropertyEditorSupport implements XMLPropertyEditor
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_VALUE |
static String |
XML_URL |
Constructor and Description |
---|
URLEditor() |
Modifier and Type | Method and Description |
---|---|
String |
getAsText() |
String |
getJavaInitializationString() |
void |
readFromXML(Node element)
Called to load property value from specified XML subtree.
|
void |
setAsText(String s)
sets new value
|
Node |
storeToXML(Document doc)
Called to store current property value into XML subtree.
|
boolean |
supportsCustomEditor() |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getCustomEditor, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue
public static final String XML_URL
public static final String ATTR_VALUE
public void setAsText(String s)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
getJavaInitializationString
in class PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
supportsCustomEditor
in class PropertyEditorSupport
public void readFromXML(Node element) throws IOException
readFromXML
in interface XMLPropertyEditor
element
- the XML DOM element representing a subtree of XML from which the value should be loadedIOException
- thrown when the value cannot be restored from the specified XML elementpublic Node storeToXML(Document doc)
storeToXML
in interface XMLPropertyEditor
doc
- The XML document to store the XML in - should be used for creating nodes only