org.riotfamily.common.beans.propertyeditors
Class BooleanEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.riotfamily.common.beans.propertyeditors.BooleanEditor
All Implemented Interfaces:
PropertyEditor

public class BooleanEditor
extends PropertyEditorSupport


Field Summary
static String VALUE_FALSE
           
static String VALUE_TRUE
           
 
Constructor Summary
BooleanEditor()
           
BooleanEditor(boolean defaultValue)
           
BooleanEditor(Boolean defaultValue)
           
 
Method Summary
 String getAsText()
           
 void setAsText(String text)
           
 void setDefaultValue(Boolean defaultValue)
           
 
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
 

Field Detail

VALUE_TRUE

public static final String VALUE_TRUE
See Also:
Constant Field Values

VALUE_FALSE

public static final String VALUE_FALSE
See Also:
Constant Field Values
Constructor Detail

BooleanEditor

public BooleanEditor()

BooleanEditor

public BooleanEditor(boolean defaultValue)

BooleanEditor

public BooleanEditor(Boolean defaultValue)
Method Detail

setDefaultValue

public void setDefaultValue(Boolean defaultValue)

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport