|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
org.netbeans.beaninfo.editors.PointEditor
public class PointEditor
A property editor for Point class.
| Field Summary | |
|---|---|
static String |
ATTR_VALUE
|
| Fields inherited from interface org.openide.explorer.propertysheet.ExPropertyEditor |
|---|
PROP_VALUE_VALID, PROPERTY_HELP_ID |
| Constructor Summary | |
|---|---|
PointEditor()
|
|
| Method Summary | |
|---|---|
void |
attachEnv(PropertyEnv env)
|
String |
getAsText()
|
Component |
getCustomEditor()
|
String |
getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. |
protected String |
getXMLValueTag()
Provides name of XML tag to use for XML persistence of the property value |
void |
readFromXML(Node element)
Called to load property value from specified XML subtree. |
void |
setAsText(String text)
Set the property value by parsing a given String. |
Node |
storeToXML(Document doc)
Called to store current property value into XML subtree. |
boolean |
supportsCustomEditor()
|
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.beans.PropertyEditor |
|---|
addPropertyChangeListener, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue |
| Field Detail |
|---|
public static final String ATTR_VALUE
| Constructor Detail |
|---|
public PointEditor()
| Method Detail |
|---|
public boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditorsupportsCustomEditor in class PropertyEditorSupportpublic Component getCustomEditor()
getCustomEditor in interface PropertyEditorgetCustomEditor in class PropertyEditorSupportprotected String getXMLValueTag()
public void attachEnv(PropertyEnv env)
attachEnv in interface ExPropertyEditorpublic String getJavaInitializationString()
Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
getJavaInitializationString in interface PropertyEditorgetJavaInitializationString in class PropertyEditorSupportpublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportReturns null if the value can't be expressed as an editable string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
public void setAsText(String text)
throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupporttext - The string to be parsed.
IllegalArgumentException
public void readFromXML(Node element)
throws IOException
readFromXML in interface XMLPropertyEditorelement - the XML DOM element representing a subtree of XML from which the value should be loaded
IOException - thrown when the value cannot be restored from the specified XML elementpublic Node storeToXML(Document doc)
storeToXML in interface XMLPropertyEditordoc - The XML document to store the XML in - should be used for creating nodes only
|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||