JBoss Common Beans 1.1.0.Final-redhat-1

org.jboss.common.beans.property
Class BooleanEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.jboss.common.beans.property.PropertyEditorSupport<Boolean>
          extended by org.jboss.common.beans.property.BooleanEditor
All Implemented Interfaces:
PropertyEditor

public class BooleanEditor
extends PropertyEditorSupport<Boolean>

A property editor for Boolean.

Author:
Scott.Stark@jboss.org

Constructor Summary
BooleanEditor()
           
 
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 org.jboss.common.beans.property.PropertyEditorSupport
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getAsText, getType, getValue, removePropertyChangeListener, removePropertyChangeListener, setValue
 
Methods inherited from class java.beans.PropertyEditorSupport
firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, isPaintable, paintValue, setSource, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanEditor

public BooleanEditor()
Method Detail

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
Specified by:
setAsText in class PropertyEditorSupport<Boolean>
Parameters:
text - The string to be parsed.

getTags

public String[] getTags()
Specified by:
getTags in interface PropertyEditor
Overrides:
getTags in class PropertyEditorSupport
Returns:
the values {"true", "false"}

JBoss Common Beans 1.1.0.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.