当前页面:
在线文档首页 >
NetBeans API Javadoc 5.5.1
ElementFormatEditor (NetBeans Java Hierarchy API) - NetBeans API Javadoc 5.5.1
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, 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 |
ElementFormatEditor
public ElementFormatEditor()
- Constructs new property editor.
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.