| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAsText()
Overrides java. Implements java. Gets the property value as a string suitable for presentation to a human to edit. |
| public String | getJavaInitializationString()
Overrides java. Implements java. This method is intended for use when generating Java code to set the value of the property. |
| public String[] | getTags()
Overrides java. Implements java. 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. |
| private String | |
| private boolean | |
| public void | setAsText(String text)
Overrides java. Implements java. Sets the property value by parsing a given String. |
| BooleanEditor | back to summary |
|---|---|
| public BooleanEditor() | |
| getAsText | back to summary |
|---|---|
| public String getAsText() Overrides java. Implements java. Doc from java. Gets the property value as a string suitable for presentation to a human to edit.
| |
| getJavaInitializationString | back to summary |
|---|---|
| public String getJavaInitializationString() Overrides java. Implements java. Doc from java. 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.
| |
| getTags | back to summary |
|---|---|
| public String[] getTags() Overrides java. Implements java. Doc from java. 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.
| |
| getValidName | back to summary |
|---|---|
| private String getValidName(boolean value) | |
| isValidName | back to summary |
|---|---|
| private boolean isValidName(boolean value, String name) | |
| setAsText | back to summary |
|---|---|
| public void setAsText(String text) throws IllegalArgumentException Overrides java. Implements java. Doc from java. 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.
| |