1 18 package org.apache.roller.ui.authoring.struts.formbeans; 19 20 import java.util.Locale ; 21 22 import org.apache.struts.action.ActionForm; 23 import org.apache.roller.pojos.WebsiteData; 24 25 29 public class CreateWebsiteForm extends ActionForm 30 { 31 private String handle; 32 private String name; 33 private String description; 34 private String emailAddress; 35 private String locale; 36 private String timeZone; 37 private String theme; 38 39 public CreateWebsiteForm() 40 { 41 42 } 43 public String getDescription() 44 { 45 return description; 46 } 47 public void setDescription(String description) 48 { 49 this.description = description; 50 } 51 public String getEmailAddress() 52 { 53 return emailAddress; 54 } 55 public void setEmailAddress(String emailAddress) 56 { 57 this.emailAddress = emailAddress; 58 } 59 public String getHandle() 60 { 61 return handle; 62 } 63 public void setHandle(String handle) 64 { 65 this.handle = handle; 66 } 67 public String getLocale() 68 { 69 return locale; 70 } 71 public void setLocale(String locale) 72 { 73 this.locale = locale; 74 } 75 public String getName() 76 { 77 return name; 78 } 79 public void setName(String name) 80 { 81 this.name = name; 82 } 83 public String getTheme() 84 { 85 return theme; 86 } 87 public void setTheme(String theme) 88 { 89 this.theme = theme; 90 } 91 public String getTimeZone() 92 { 93 return timeZone; 94 } 95 public void setTimeZone(String timeZone) 96 { 97 this.timeZone = timeZone; 98 } 99 100 104 public void copyTo(WebsiteData wd, Locale 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 |