| java.lang.Object java.beans.PropertyEditorSupport org.springframework.beans.propertyeditors.CustomNumberEditor
Constructor Summary | |
public | CustomNumberEditor(Class numberClass, boolean allowEmpty) Create a new CustomNumberEditor instance, using the default
valueOf methods for parsing and toString
methods for rendering.
The "allowEmpty" parameter states if an empty String should
be allowed for parsing, i.e. | public | CustomNumberEditor(Class numberClass, NumberFormat numberFormat, boolean allowEmpty) Create a new CustomNumberEditor instance, using the given NumberFormat
for parsing and rendering.
The allowEmpty parameter states if an empty String should
be allowed for parsing, i.e. |
Method Summary | |
public String | getAsText() Format the Number as String, using the specified NumberFormat. | public void | setAsText(String text) Parse the Number from the given text, using the specified NumberFormat. | public void | setValue(Object value) Coerce a Number value into the required target class, if necessary. |
getAsText | public String getAsText()(Code) | | Format the Number as String, using the specified NumberFormat.
|
setValue | public void setValue(Object value)(Code) | | Coerce a Number value into the required target class, if necessary.
|
|
|