1 18 19 package org.apache.struts.webapp.tiles.invoice; 20 21 import org.apache.struts.action.ActionForm; 22 23 24 26 27 public final class InvoiceForm extends ActionForm { 28 29 32 private Address shippingAddress; 33 34 37 private Address billAddress; 38 39 42 private double amount; 43 44 47 private String firstname; 48 49 52 private String lastname; 53 54 public InvoiceForm() 55 { 56 shippingAddress = new Address(); 57 billAddress = new Address(); 58 } 59 60 65 public Address getShippingAddress() 66 { 67 return shippingAddress;} 68 69 75 public void setShippingAddress(Address aShippingAddress) 76 { 77 shippingAddress = aShippingAddress; 78 } 79 80 85 public Address getBillAddress() 86 { 87 return billAddress; 88 } 89 90 96 public void setBillAddress(Address aBillAddress) 97 { 98 billAddress = aBillAddress; 99 } 100 101 106 public double getAmount() 107 { 108 return amount; 109 } 110 111 117 public void setAmount(double aAmount) 118 { 119 amount = aAmount; 120 } 121 122 127 public String getFirstname() 128 { 129 return firstname; 130 } 131 132 138 public void setFirstname(String aFirstname) 139 { 140 firstname = aFirstname; 141 } 142 143 148 public String getLastname() 149 { 150 return lastname; 151 } 152 153 159 public void setLastname(String aLastname) 160 { 161 lastname = aLastname; 162 } 163 164 } 165 166 | Popular Tags |