org.jboss.util.propertyeditor
Class BooleanEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.jboss.util.propertyeditor.BooleanEditor
- All Implemented Interfaces:
- PropertyEditor
public class BooleanEditor
- extends PropertyEditorSupport
A property editor for Boolean
.
- Version:
- $Revision: 1.4.6.3 $
- Author:
- Scott.Stark@jboss.org
Method Summary |
String[] |
getTags()
|
void |
setAsText(String text)
Map the argument text into Boolean.TRUE or Boolean.FALSE
using Boolean.valueOf. |
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, 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 |
BooleanEditor
public BooleanEditor()
setAsText
public void setAsText(String text)
- Map the argument text into Boolean.TRUE or Boolean.FALSE
using Boolean.valueOf.
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
getTags
public String[] getTags()
- Specified by:
getTags
in interface PropertyEditor
- Overrides:
getTags
in class PropertyEditorSupport
- Returns:
- the values {"true", "false"}
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.