Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 $`
Author:
  Elias Ross

Constructor Summary
`DocumentEditor()`

Method Summary
`protected Document` | `getAsDocument(String text)`
`String` | `getAsText()` Returns the property as a String.
`void` | `setAsText(String text)` Sets as an Document created by a String.

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`

Constructor Detail

### DocumentEditor

    public DocumentEditor()

Method Detail

### getAsText

    public String getAsText()

  Returns the property as a String.

  Throws:
    `NestedRuntimeException` - conversion exception occured

### setAsText

    public void setAsText(String text)

  Sets as an Document created by a String.

  Throws:
    `NestedRuntimeException` - A parse exception occured

### getAsDocument

    protected Document getAsDocument(String text)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 JBoss Group, LLC. All Rights Reserved.