KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > struts > webapp > tiles > invoice > InvoiceForm


1 /*
2  * $Id: InvoiceForm.java 54929 2004-10-16 16:38:42Z germuska $
3  *
4  * Copyright 1999-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.apache.struts.webapp.tiles.invoice;
20
21 import org.apache.struts.action.ActionForm;
22
23
24 /**
25  */

26
27 public final class InvoiceForm extends ActionForm {
28
29   /**
30    * Shipping address
31    */

32   private Address shippingAddress;
33
34   /**
35    * Bill address
36    */

37   private Address billAddress;
38
39   /**
40    * Invoice total amount
41    */

42   private double amount;
43
44   /**
45    * Customer firstname
46    */

47   private String JavaDoc firstname;
48
49   /**
50    * Customer last name
51    */

52   private String JavaDoc lastname;
53
54   public InvoiceForm()
55     {
56     shippingAddress = new Address();
57     billAddress = new Address();
58     }
59
60   /**
61    * Access method for the shippingAddress property.
62    *
63    * @return the current value of the shippingAddress property
64    */

65   public Address getShippingAddress()
66    {
67     return shippingAddress;}
68
69   /**
70    * @return void
71    * Sets the value of the shippingAddress property.
72    *
73    * @param aShippingAddress the new value of the shippingAddress property
74    */

75   public void setShippingAddress(Address aShippingAddress)
76     {
77     shippingAddress = aShippingAddress;
78     }
79
80   /**
81    * Access method for the billAddress property.
82    *
83    * @return the current value of the billAddress property
84    */

85   public Address getBillAddress()
86     {
87     return billAddress;
88     }
89
90   /**
91    * @return void
92    * Sets the value of the billAddress property.
93    *
94    * @param aBillAddress the new value of the billAddress property
95    */

96   public void setBillAddress(Address aBillAddress)
97     {
98     billAddress = aBillAddress;
99     }
100
101   /**
102    * Access method for the amount property.
103    *
104    * @return the current value of the amount property
105    */

106   public double getAmount()
107     {
108     return amount;
109     }
110
111   /**
112    * @return void
113    * Sets the value of the amount property.
114    *
115    * @param aAmount the new value of the amount property
116    */

117   public void setAmount(double aAmount)
118     {
119     amount = aAmount;
120     }
121
122   /**
123    * Access method for the firstname property.
124    *
125    * @return the current value of the firstname property
126    */

127   public String JavaDoc getFirstname()
128     {
129     return firstname;
130     }
131
132   /**
133    * @return void
134    * Sets the value of the firstname property.
135    *
136    * @param aFirstname the new value of the firstname property
137    */

138   public void setFirstname(String JavaDoc aFirstname)
139     {
140     firstname = aFirstname;
141     }
142
143   /**
144    * Access method for the lastname property.
145    *
146    * @return the current value of the lastname property
147    */

148   public String JavaDoc getLastname()
149     {
150     return lastname;
151     }
152
153   /**
154    * @return void
155    * Sets the value of the lastname property.
156    *
157    * @param aLastname the new value of the lastname property
158    */

159   public void setLastname(String JavaDoc aLastname)
160     {
161     lastname = aLastname;
162     }
163
164 }
165
166
Popular Tags