Package org.kuali.rice.krad.web.bind
Class UifCurrencyEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.kuali.rice.krad.web.bind.UifCurrencyEditor
- All Implemented Interfaces:
PropertyEditor,Serializable
- Direct Known Subclasses:
UifKualiIntegerCurrencyEditor
Class is used to format
org.kuali.rice.core.api.util.type.KualiDecimal in the local
currency- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectconvertToObject(String text) Converts the string to aorg.kuali.rice.core.api.util.type.KualiDecimalobject using the local currency format.voidThis overridden method sets the property value by parsing a given String.Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
UifCurrencyEditor
public UifCurrencyEditor()
-
-
Method Details
-
getAsText
- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport
-
setAsText
This overridden method sets the property value by parsing a given String. It uses theconvertToObjectmethod to make the code available to sub classes.- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- See Also:
-
convertToObject
Converts the string to aorg.kuali.rice.core.api.util.type.KualiDecimalobject using the local currency format.- Parameters:
text- the text from the UI to convert- Returns:
- the
org.kuali.rice.core.api.util.type.KualiDecimalobject to be set on the bean
-