public class UifBooleanEditor extends PropertyEditorSupport implements Serializable
Constructor and Description |
---|
UifBooleanEditor() |
Modifier and Type | Method and Description |
---|---|
String |
getAsText()
Gets the property value as a string suitable for presentation
to a human to edit
|
void |
setAsText(String text)
Sets the property value by parsing a given String
|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public UifBooleanEditor()
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
Returns String "true" or "false".
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(String text) throws IllegalArgumentException
The text is compared against the configured acceptable string values for boolean true and false
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
text
- The string to be parsed.IllegalArgumentException
- if text does not contain either true or falseCopyright © 2005–2015 The Kuali Foundation. All rights reserved.