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

## org.openide.explorer.propertysheet.editors
Class ElementFormatEditor

    java.lang.Object
      java.beans.PropertyEditorSupport
          org.openide.explorer.propertysheet.editors.ElementFormatEditor

All Implemented Interfaces:
  PropertyEditor

    public class ElementFormatEditor

extends PropertyEditorSupport

Property editor for ElementFormat. TODO: - there should be also custom editor (for visual editing the format)

Constructor Summary
`ElementFormatEditor()` Constructs new property editor.

Method Summary
`String` | `getAsText()`
`void` | `setAsText(String text)` Set the property value by parsing a given 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

### ElementFormatEditor

    public ElementFormatEditor()

  Constructs new property editor.

Method Detail

### getAsText

    public String getAsText()

  Specified by:
    `getAsText` in interface `PropertyEditor`
  Overrides:
    `getAsText` in class `PropertyEditorSupport`
  Returns:
    The property value as a human editable string.

### setAsText

    public void setAsText(String text)
                   throws IllegalArgumentException

  Set the property value by parsing a given String.

  Specified by:
    `setAsText` in interface `PropertyEditor`
  Overrides:
    `setAsText` in class `PropertyEditorSupport`
  Parameters:
    `text` - The string to be parsed.
  Throws:
    `IllegalArgumentException` - if the String is badly formatted.

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

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.