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
public class UifCurrencyEditor
- extends PropertyEditorSupport
- implements Serializable
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:
- Serialized Form
Method Summary |
protected Object |
convertToObject(String text)
Converts the string to a
org.kuali.rice.core.api.util.type.KualiDecimal object using the
local currency format. |
String |
getAsText()
This overridden method ... |
void |
setAsText(String text)
This 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UifCurrencyEditor
public UifCurrencyEditor()
getAsText
public String getAsText()
- This overridden method ...
- Specified by:
getAsText
in interface PropertyEditor
- Overrides:
getAsText
in class PropertyEditorSupport
- See Also:
PropertyEditorSupport.getAsText()
setAsText
public void setAsText(String text)
- This overridden method sets the property value by parsing a given String.
It uses the
convertToObject
method to make the code
available to sub classes.
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
- See Also:
PropertyEditorSupport.setAsText(java.lang.String)
convertToObject
protected Object convertToObject(String text)
- Converts the string to a
org.kuali.rice.core.api.util.type.KualiDecimal
object using the
local currency format.
- Parameters:
text
- the text from the UI to convert
- Returns:
- the
org.kuali.rice.core.api.util.type.KualiDecimal
object to be set on the bean
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.