org.kuali.rice.krad.web.bind
Class UifCurrencyEditor
java.lang.Object
   java.beans.PropertyEditorSupport
java.beans.PropertyEditorSupport
       org.kuali.rice.krad.web.bind.UifCurrencyEditor
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.KualiDecimalobject 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:
- getAsTextin interface- PropertyEditor
- Overrides:
- getAsTextin 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 convertToObjectmethod to make the code
 available to sub classes.
 
- 
- Specified by:
- setAsTextin interface- PropertyEditor
- Overrides:
- setAsTextin 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.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
 
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.