org.broadleafcommerce.openadmin.web.editor
Class NonNullBooleanEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.springframework.beans.propertyeditors.CustomBooleanEditor
          extended by org.broadleafcommerce.openadmin.web.editor.NonNullBooleanEditor
All Implemented Interfaces:
PropertyEditor

public class NonNullBooleanEditor
extends org.springframework.beans.propertyeditors.CustomBooleanEditor

Property editor for Booleans that will set the boolean to false if it came in as a null

Author:
Andre Azzolini (apazzolini)

Field Summary
 
Fields inherited from class org.springframework.beans.propertyeditors.CustomBooleanEditor
VALUE_0, VALUE_1, VALUE_FALSE, VALUE_NO, VALUE_OFF, VALUE_ON, VALUE_TRUE, VALUE_YES
 
Constructor Summary
NonNullBooleanEditor()
           
 
Method Summary
 void setAsText(String text)
           
 
Methods inherited from class org.springframework.beans.propertyeditors.CustomBooleanEditor
getAsText
 
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
 

Constructor Detail

NonNullBooleanEditor

public NonNullBooleanEditor()
Method Detail

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class org.springframework.beans.propertyeditors.CustomBooleanEditor
Throws:
IllegalArgumentException


Copyright © 2013. All Rights Reserved.