it.openutils.web.spring
Class EasyDoubleCustomEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.CustomNumberEditor
it.openutils.web.spring.EasyDoubleCustomEditor
- All Implemented Interfaces:
- java.beans.PropertyEditor
public class EasyDoubleCustomEditor
- extends org.springframework.beans.propertyeditors.CustomNumberEditor
Convenience double custom editor which allows to use both "." and "," as decimal separators.
- Version:
- $Revision$ ($Author$)
- Author:
- fgiust
|
Method Summary |
void |
setAsText(java.lang.String text)
|
| Methods inherited from class org.springframework.beans.propertyeditors.CustomNumberEditor |
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 |
EasyDoubleCustomEditor
public EasyDoubleCustomEditor(java.lang.Class numberClass,
boolean allowEmpty)
throws java.lang.IllegalArgumentException
- Parameters:
numberClass - allowEmpty -
- Throws:
java.lang.IllegalArgumentException
EasyDoubleCustomEditor
public EasyDoubleCustomEditor(java.lang.Class numberClass,
java.text.NumberFormat numberFormat,
boolean allowEmpty)
throws java.lang.IllegalArgumentException
- Parameters:
numberClass - numberFormat - allowEmpty -
- Throws:
java.lang.IllegalArgumentException
setAsText
public void setAsText(java.lang.String text)
throws java.lang.IllegalArgumentException
- Specified by:
setAsText in interface java.beans.PropertyEditor- Overrides:
setAsText in class org.springframework.beans.propertyeditors.CustomNumberEditor
- Throws:
java.lang.IllegalArgumentException- See Also:
CustomNumberEditor.setAsText(java.lang.String)
Copyright {inceptionYear}-2006 Fabrizio Giustina. All Rights Reserved.