Package org.jboss.util.propertyeditor
Class BooleanEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jboss.util.propertyeditor.BooleanEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class BooleanEditor extends java.beans.PropertyEditorSupportA property editor forBoolean.- Version:
- $Revision$
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]BOOLEAN_TAGS
-
Constructor Summary
Constructors Constructor Description BooleanEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getTags()voidsetAsText(java.lang.String text)Map the argument text into Boolean.TRUE or Boolean.FALSE using Boolean.valueOf.
-
-
-
Method Detail
-
setAsText
public void setAsText(java.lang.String text)
Map the argument text into Boolean.TRUE or Boolean.FALSE using Boolean.valueOf.- Specified by:
setAsTextin interfacejava.beans.PropertyEditor- Overrides:
setAsTextin classjava.beans.PropertyEditorSupport
-
getTags
public java.lang.String[] getTags()
- Specified by:
getTagsin interfacejava.beans.PropertyEditor- Overrides:
getTagsin classjava.beans.PropertyEditorSupport- Returns:
- the values {"true", "false"}
-
-