1 18 package org.apache.struts.webapp.tiles.invoice; 19 20 import org.apache.struts.action.ActionForm; 21 22 25 public class Invoice extends ActionForm 26 { 27 28 31 private Address shippingAddress; 32 33 36 private Address billAddress; 37 38 41 private double amount; 42 43 46 private String firstname; 47 48 51 private String lastname; 52 53 public Invoice() 54 { 55 shippingAddress = new Address(); 56 billAddress = new Address(); 57 } 58 59 64 public Address getShippingAddress() { 65 return shippingAddress;} 66 67 73 public void setShippingAddress(Address aShippingAddress) { 74 shippingAddress = aShippingAddress;} 75 76 81 public Address getBillAddress() { 82 return billAddress;} 83 84 90 public void setBillAddress(Address aBillAddress) { 91 billAddress = aBillAddress;} 92 93 98 public double getAmount() { 99 return amount;} 100 101 107 public void setAmount(double aAmount) { 108 amount = aAmount;} 109 110 115 public String getFirstname() { 116 return firstname;} 117 118 124 public void setFirstname(String aFirstname) { 125 firstname = aFirstname;} 126 127 132 public String getLastname() { 133 return lastname;} 134 135 141 public void setLastname(String aLastname) { 142 lastname = aLastname;} 143 } 144 | Popular Tags |