|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
pt.moredata.widgets.ComponentTypeEditor
Description of the Class
| Constructor Summary | |
ComponentTypeEditor()
|
|
| Method Summary | |
java.lang.String |
getAsText()
Gets the property value as a string suitable for presentation to a human to edit. |
java.lang.String |
getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. |
java.lang.String[] |
getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tag values. |
java.lang.Object |
getValue()
Gets the value of the property. |
void |
setAsText(java.lang.String s)
Sets the property value by parsing a given String. |
void |
setValue(java.lang.Object o)
Set (or change) the object that is to be edited. |
| Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComponentTypeEditor()
| Method Detail |
public java.lang.String[] getTags()
public void setValue(java.lang.Object o)
public java.lang.Object getValue()
public java.lang.String getAsText()
Returns "null" is the value can't be expressed as a string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
public void setAsText(java.lang.String s)
public java.lang.String getJavaInitializationString()
Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||