View Javadoc
1   package org.kuali.ole.sys.businessobject.format;
2   
3   import java.math.BigDecimal;
4   
5   import org.kuali.rice.core.api.util.type.KualiDecimal;
6   import org.kuali.rice.core.web.format.BigDecimalFormatter;
7   
8   /**
9    * This class is used to format value to Kuali Decimal objects.
10   */
11  public class KualiDecimalFormatter extends BigDecimalFormatter {
12  
13      /**
14       * Converts the given String to a KualiDecimal
15       */
16      @Override
17      protected Object convertToObject(String target) {
18          BigDecimal value = (BigDecimal)super.convertToObject(target);
19          return new KualiDecimal(value);
20      }
21  }