Class DocumentEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor
    Direct Known Subclasses:
    ElementEditor

    public class DocumentEditor
    extends java.beans.PropertyEditorSupport
    A property editor for Document.
    Version:
    $Revision$
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentEditor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.w3c.dom.Document getAsDocument​(java.lang.String text)  
      java.lang.String getAsText()
      Returns the property as a String.
      void setAsText​(java.lang.String text)
      Sets as an Document created by a 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
    • Constructor Detail

      • DocumentEditor

        public DocumentEditor()
    • Method Detail

      • getAsText

        public java.lang.String getAsText()
        Returns the property as a String.
        Specified by:
        getAsText in interface java.beans.PropertyEditor
        Overrides:
        getAsText in class java.beans.PropertyEditorSupport
        Throws:
        NestedRuntimeException - conversion exception occured
      • setAsText

        public void setAsText​(java.lang.String text)
        Sets as an Document created by a String.
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Overrides:
        setAsText in class java.beans.PropertyEditorSupport
        Throws:
        NestedRuntimeException - A parse exception occured
      • getAsDocument

        protected org.w3c.dom.Document getAsDocument​(java.lang.String text)