KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > interfaces > PersonContactForm


1 package test.interfaces;
2
3 /**
4  * Generated by XDoclet/ejbdoclet/strutsform. This class can be further processed with XDoclet/webdoclet/strutsconfigxml and XDoclet/webdoclet/strutsvalidationxml.
5  *
6  * @struts.form name="person.Contact"
7  */

8 public class PersonContactForm
9     extends org.apache.struts.action.ActionForm
10     implements java.io.Serializable JavaDoc
11 {
12     protected java.lang.String JavaDoc phone;
13     protected java.lang.String JavaDoc fax;
14
15     /** Default empty constructor. */
16     public PersonContactForm() {}
17
18     /** Constructor that takes the data object as argument. */
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 JavaDoc getPhone()
26     {
27         return this.phone;
28     }
29
30    /**
31     */

32     public void setPhone( java.lang.String JavaDoc phone )
33     {
34         this.phone = phone;
35     }
36
37     public java.lang.String JavaDoc getFax()
38     {
39         return this.fax;
40     }
41
42    /**
43     */

44     public void setFax( java.lang.String JavaDoc 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