当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
ElementFormatEditor (NetBeans Java Hierarchy API) - NetBeans API Javadoc 4.1.0
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)
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 |
ElementFormatEditor
public ElementFormatEditor()
- Constructs new property editor.
getAsText
public String getAsText()
- 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.
- Parameters:
text
- The string to be parsed.
- Throws:
IllegalArgumentException
- if the String is badly formatted.