org.kuali.rice.krad.web.bind
Class UifPercentageEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.kuali.rice.krad.web.bind.UifPercentageEditor
All Implemented Interfaces:
PropertyEditor, Serializable

public class UifPercentageEditor
extends PropertyEditorSupport
implements 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:
Serialized Form

Field Summary
static String PERCENTAGE_FORMAT
          The default format for percentage values.
static int PERCENTAGE_SCALE
          The default scale for percentage values.
 
Constructor Summary
UifPercentageEditor()
           
 
Method Summary
 String getAsText()
          This overridden method converts org.kuali.rice.core.api.util.type.KualiPercent objects to the display string.
 void setAsText(String text)
          This overridden method converts the display string to a org.kuali.rice.core.api.util.type.KualiPercent object.
 
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
 

Field Detail

PERCENTAGE_SCALE

public static final int PERCENTAGE_SCALE
The default scale for percentage values.

See Also:
Constant Field Values

PERCENTAGE_FORMAT

public static final String PERCENTAGE_FORMAT
The default format for percentage values.

See Also:
Constant Field Values
Constructor Detail

UifPercentageEditor

public UifPercentageEditor()
Method Detail

getAsText

public String getAsText()
This overridden method converts org.kuali.rice.core.api.util.type.KualiPercent objects to the display string.

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
See Also:
PropertyEditorSupport.getAsText()

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
This overridden method converts the display string to a org.kuali.rice.core.api.util.type.KualiPercent object.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException
See Also:
PropertyEditorSupport.setAsText(java.lang.String)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.