View Javadoc

1   package org.paneris.bibliomania;
2   
3   import java.text.NumberFormat;
4   import java.util.Locale;
5   
6   import org.paneris.bibliomania.generated.DeliveryChargeBase;
7   
8   public class DeliveryCharge extends DeliveryChargeBase {
9     public DeliveryCharge() {}
10  
11    /* format a number in the locale currency
12    */
13    public String displayPrice() {
14      return new String(NumberFormat.getCurrencyInstance(Locale.UK).
15                        format(getCharge().doubleValue()));
16    } 
17  }