1 package test.interfaces; 2 3 8 public class PersonContactForm 9 extends org.apache.struts.action.ActionForm 10 implements java.io.Serializable 11 { 12 protected java.lang.String phone; 13 protected java.lang.String fax; 14 15 16 public PersonContactForm() {} 17 18 19 public PersonContactForm(test.interfaces.PersonData dataHolder) 20 { 21 this.setPhone(dataHolder.getPhone()); 22 this.setFax(dataHolder.getFax()); 23 } 24 25 public java.lang.String getPhone() 26 { 27 return this.phone; 28 } 29 30 32 public void setPhone( java.lang.String phone ) 33 { 34 this.phone = phone; 35 } 36 37 public java.lang.String getFax() 38 { 39 return this.fax; 40 } 41 42 44 public void setFax( java.lang.String fax ) 45 { 46 this.fax = fax; 47 } 48 49 public test.interfaces.PersonData getData(test.interfaces.PersonData dataHolder) 50 { 51 test.interfaces.PersonData retData = new test.interfaces.PersonData(dataHolder); 52 53 retData.setPhone(this.getPhone()); 54 retData.setFax(this.getFax()); 55 56 return retData; 57 } 58 59 public test.interfaces.PersonData getData() 60 { 61 test.interfaces.PersonData retData = new test.interfaces.PersonData(); 62 63 retData.setPhone(this.getPhone()); 64 retData.setFax(this.getFax()); 65 66 return retData; 67 } 68 69 public void setData(test.interfaces.PersonData dataHolder) 70 { 71 this.setPhone (dataHolder.getPhone()); 72 this.setFax (dataHolder.getFax()); 73 } 74 75 } 76 | Popular Tags |