KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > roller > ui > authoring > struts > formbeans > CreateWebsiteForm


1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. The ASF licenses this file to You
4 * under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. For additional information regarding
15 * copyright in this work, please see the NOTICE file in the top level
16 * directory of this distribution.
17 */

18 package org.apache.roller.ui.authoring.struts.formbeans;
19
20 import java.util.Locale JavaDoc;
21
22 import org.apache.struts.action.ActionForm;
23 import org.apache.roller.pojos.WebsiteData;
24
25 /**
26  * @struts.form name="createWebsiteForm"
27  * @author Dave M Johnson
28  */

29 public class CreateWebsiteForm extends ActionForm
30 {
31     private String JavaDoc handle;
32     private String JavaDoc name;
33     private String JavaDoc description;
34     private String JavaDoc emailAddress;
35     private String JavaDoc locale;
36     private String JavaDoc timeZone;
37     private String JavaDoc theme;
38     
39     public CreateWebsiteForm()
40     {
41         
42     }
43     public String JavaDoc getDescription()
44     {
45         return description;
46     }
47     public void setDescription(String JavaDoc description)
48     {
49         this.description = description;
50     }
51     public String JavaDoc getEmailAddress()
52     {
53         return emailAddress;
54     }
55     public void setEmailAddress(String JavaDoc emailAddress)
56     {
57         this.emailAddress = emailAddress;
58     }
59     public String JavaDoc getHandle()
60     {
61         return handle;
62     }
63     public void setHandle(String JavaDoc handle)
64     {
65         this.handle = handle;
66     }
67     public String JavaDoc getLocale()
68     {
69         return locale;
70     }
71     public void setLocale(String JavaDoc locale)
72     {
73         this.locale = locale;
74     }
75     public String JavaDoc getName()
76     {
77         return name;
78     }
79     public void setName(String JavaDoc name)
80     {
81         this.name = name;
82     }
83     public String JavaDoc getTheme()
84     {
85         return theme;
86     }
87     public void setTheme(String JavaDoc theme)
88     {
89         this.theme = theme;
90     }
91     public String JavaDoc getTimeZone()
92     {
93         return timeZone;
94     }
95     public void setTimeZone(String JavaDoc timeZone)
96     {
97         this.timeZone = timeZone;
98     }
99     
100     /**
101      * @param wd
102      * @param locale2
103      */

104     public void copyTo(WebsiteData wd, Locale JavaDoc locale)
105     {
106         wd.setHandle(handle);
107         wd.setName(name);
108         wd.setDescription(description);
109         wd.setLocale(this.locale);
110         wd.setTimeZone(timeZone);
111     }
112 }
113
Popular Tags