KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > store > orders > SubmittedOrder


1 /*
2  * Created on Jan 17, 2005
3  */

4 package com.openedit.store.orders;
5
6 import org.openedit.money.Money;
7
8 import com.openedit.store.Order;
9
10 /**
11  * @author dbrown
12  *
13  */

14 public class SubmittedOrder extends Order
15 {
16     protected Money fieldShippingCost;
17     protected String JavaDoc fieldDateOrdered; //formated version of the date
18

19     public SubmittedOrder()
20     {
21     }
22
23     public Money getShippingCost()
24     {
25         return fieldShippingCost;
26     }
27     public void setShippingCost(Money inShippingCost)
28     {
29         fieldShippingCost = inShippingCost;
30     }
31     
32     
33     public String JavaDoc getDateOrdered()
34     {
35         return fieldDateOrdered;
36     }
37     public void setDateOrdered(String JavaDoc inDateOrdered)
38     {
39         fieldDateOrdered = inDateOrdered;
40     }
41     /*
42     public List getPurchasedItems()
43     {
44         if (fieldPurchasedItems == null)
45         {
46             fieldPurchasedItems = new ArrayList();
47         }
48         return fieldPurchasedItems;
49     }
50
51
52     public String getOrderStatus()
53     {
54         if (fieldOrderStatus == null)
55         {
56             return "accepted";
57         }
58         return fieldOrderStatus;
59     }
60
61     public void setOrderStatus(String inOrderStatus)
62     {
63         fieldOrderStatus = inOrderStatus;
64     }
65     
66     public List getStatusOptions()
67     {
68         List list = new ArrayList();
69         list.add("accepted");
70         list.add("completed");
71         list.add("invalid");
72         list.add("retracted");
73         list.add("waiting for payment");
74         return list;
75     }
76 */

77 }
78
Popular Tags