Class MyCustomFloatEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.CustomNumberEditor
app.valuationcontrol.multimodule.library.helpers.MyCustomFloatEditor
- All Implemented Interfaces:
PropertyEditor
public class MyCustomFloatEditor
extends org.springframework.beans.propertyeditors.CustomNumberEditor
Helper class to manage % inputs to Float
- Author:
- thomas
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMyCustomFloatEditor(Class<? extends Number> numberClass, boolean allowEmpty) -
Method Summary
Methods inherited from class org.springframework.beans.propertyeditors.CustomNumberEditor
getAsText, setValueMethods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
-
Field Details
-
PERCENT_INSTANCE
-
-
Constructor Details
-
MyCustomFloatEditor
public MyCustomFloatEditor(Class<? extends Number> numberClass, boolean allowEmpty) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
setAsText
Converts string to Float and manage % and ,- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classorg.springframework.beans.propertyeditors.CustomNumberEditor- Throws:
IllegalArgumentException
-