org.jboss.util.propertyeditor
Class DocumentEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.jboss.util.propertyeditor.DocumentEditor
- All Implemented Interfaces:
- PropertyEditor
- Direct Known Subclasses:
- ElementEditor
public class DocumentEditor
- extends PropertyEditorSupport
A property editor for Document
.
- Version:
- $Revision: 1.2.6.2 $
- Author:
- Elias Ross
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 |
DocumentEditor
public DocumentEditor()
getAsText
public String getAsText()
- Returns the property as a String.
- Specified by:
getAsText
in interface PropertyEditor
- Overrides:
getAsText
in class PropertyEditorSupport
- Throws:
NestedRuntimeException
- conversion exception occured
setAsText
public void setAsText(String text)
- Sets as an Document created by a String.
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
- Throws:
NestedRuntimeException
- A parse exception occured
getAsDocument
protected Document getAsDocument(String text)
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.