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.PropertyEditorSupport
A 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()
void
setAsText(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:
setAsText
in interfacejava.beans.PropertyEditor
- Overrides:
setAsText
in classjava.beans.PropertyEditorSupport
-
getTags
public java.lang.String[] getTags()
- Specified by:
getTags
in interfacejava.beans.PropertyEditor
- Overrides:
getTags
in classjava.beans.PropertyEditorSupport
- Returns:
- the values {"true", "false"}
-
-