Coverage Report - org.kuali.rice.krad.web.bind.UifKualiIntegerCurrencyEditor
 
Classes in this File Line Coverage Branch Coverage Complexity
UifKualiIntegerCurrencyEditor
0%
0/4
N/A
1
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 1.0 (the "License"); you may not use this file except in
 4  
  * compliance with the License. You may obtain a copy of the License at
 5  
  * http://www.opensource.org/licenses/ecl1.php Unless required by applicable law
 6  
  * or agreed to in writing, software distributed under the License is
 7  
  * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 8  
  * KIND, either express or implied. See the License for the specific language
 9  
  * governing permissions and limitations under the License.
 10  
  */
 11  
 package org.kuali.rice.krad.web.bind;
 12  
 
 13  
 import org.kuali.rice.core.util.type.KualiDecimal;
 14  
 import org.kuali.rice.core.util.type.KualiInteger;
 15  
 
 16  
 /**
 17  
  * This class is used to format
 18  
  * <code>org.kuali.rice.core.util.type.KualiInteger</code> in the local
 19  
  * currency.
 20  
  * 
 21  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 22  
  */
 23  0
 public class UifKualiIntegerCurrencyEditor extends UifCurrencyEditor {
 24  
 
 25  
     /**
 26  
      * This overridden method converts the display string to a
 27  
      * <code>org.kuali.rice.core.util.type.KualiInteger</code> object using
 28  
      * local currency format.
 29  
      * 
 30  
      * @see UifCurrencyEditor#setAsText(java.lang.String)
 31  
      */
 32  
     @Override
 33  
     public void setAsText(String text) {
 34  0
         KualiDecimal value = (KualiDecimal) (super.convertToObject(text));
 35  0
         this.setValue(new KualiInteger(value.longValue()));
 36  0
     }
 37  
 
 38  
 }