Package org.kuali.rice.krad.web.bind
Class UifPercentageEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.kuali.rice.krad.web.bind.UifPercentageEditor
- All Implemented Interfaces:
PropertyEditor,Serializable
PropertyEditor converts between percentage strings and
org.kuali.rice.core.api.util.type.KualiPercent objects- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default format for percentage values.static final intThe default scale for percentage values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis overridden method convertsorg.kuali.rice.core.api.util.type.KualiPercentobjects to the display string.voidThis overridden method converts the display string to aorg.kuali.rice.core.api.util.type.KualiPercentobject.Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Field Details
-
PERCENTAGE_SCALE
public static final int PERCENTAGE_SCALEThe default scale for percentage values.- See Also:
-
PERCENTAGE_FORMAT
The default format for percentage values.- See Also:
-
-
Constructor Details
-
UifPercentageEditor
public UifPercentageEditor()
-
-
Method Details
-
getAsText
This overridden method convertsorg.kuali.rice.core.api.util.type.KualiPercentobjects to the display string.- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport- See Also:
-
setAsText
This overridden method converts the display string to aorg.kuali.rice.core.api.util.type.KualiPercentobject.- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Throws:
IllegalArgumentException- See Also:
-