|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
org.jdesktop.swingx.editors.Rectangle2DPropertyEditor
public class Rectangle2DPropertyEditor
| Constructor Summary | |
|---|---|
Rectangle2DPropertyEditor()
Creates a new instance of Rectangle2DPropertyEditor |
|
| Method Summary | |
|---|---|
String |
getAsText()
Gets the property value as a string suitable for presentation to a human to edit. |
String |
getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. |
Rectangle2D |
getValue()
Gets the value of the property. |
static void |
main(String... args)
|
void |
setAsText(String text)
Sets the property value by parsing a given String. |
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getTags, 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 |
|---|
public Rectangle2DPropertyEditor()
| Method Detail |
|---|
public Rectangle2D getValue()
java.beans.PropertyEditorSupport
getValue in interface PropertyEditorgetValue in class PropertyEditorSupportpublic String getJavaInitializationString()
java.beans.PropertyEditorSupportExample results are "2", "new Color(127,127,34)", "Color.orange", etc.
getJavaInitializationString in interface PropertyEditorgetJavaInitializationString in class PropertyEditorSupport
public void setAsText(String text)
throws IllegalArgumentException
java.beans.PropertyEditorSupport
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupporttext - The string to be parsed.
IllegalArgumentExceptionpublic String getAsText()
java.beans.PropertyEditorSupport
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportReturns "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 static void main(String... args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||