java.lang.Object | ||
↳ | java.beans.PropertyEditorSupport | |
↳ | sun.beans.editors.BooleanEditor |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the property value as a string suitable for presentation
to a human to edit.
| |||||||||||
This method is intended for use when generating Java code to set
the value of the property.
| |||||||||||
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.
| |||||||||||
Sets the property value by parsing a given String.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Gets the property value as a string suitable for presentation to a human to edit.
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().
This method is intended for use when generating Java code to set the value of the property. It should return a fragment of Java code that can be used to initialize a variable with the current property value.
Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
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. This can be used to represent (for example) enum values. If a PropertyEditor supports tags, then it should support the use of setAsText with a tag value as a way of setting the value.
Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text.
text | The string to be parsed. |
---|
IllegalArgumentException |
---|