|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.beans.PropertyEditorSupport org.kuali.rice.krad.web.bind.UifBooleanEditor
public class UifBooleanEditor
PropertyEditor for booleans supports y/n which the spring version does not
Constructor Summary | |
---|---|
UifBooleanEditor()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.beans.PropertyEditorSupport |
---|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, 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 UifBooleanEditor()
Method Detail |
---|
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 false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |