Class NonNullBooleanEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.CustomBooleanEditor
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
Constructors -
Method Summary
Methods inherited from class org.springframework.beans.propertyeditors.CustomBooleanEditor
getAsTextMethods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
NonNullBooleanEditor
public NonNullBooleanEditor()
-
-
Method Details
-
setAsText
- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classorg.springframework.beans.propertyeditors.CustomBooleanEditor- Throws:
IllegalArgumentException
-