View Javadoc

1   /*
2    * This software was designed and created by Jason Carroll.
3    * Copyright (c) 2002, 2003, 2004 Jason Carroll.
4    * The author can be reached at jcarroll@cowsultants.com
5    * ITracker website: http://www.cowsultants.com
6    * ITracker forums: http://www.cowsultants.com/phpBB/index.php
7    *
8    * This program is free software; you can redistribute it and/or modify
9    * it only under the terms of the GNU General Public License as published by
10   * the Free Software Foundation; either version 2 of the License, or
11   * (at your option) any later version.
12   *
13   * This program is distributed in the hope that it will be useful,
14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   * GNU General Public License for more details.
17   */
18  
19  package org.itracker.web.forms;
20  
21  import java.util.HashMap;
22  import java.util.Map;
23  
24  import javax.servlet.http.HttpServletRequest;
25  
26  import org.apache.struts.action.ActionErrors;
27  import org.apache.struts.action.ActionMapping;
28  import org.apache.struts.validator.ValidatorForm;
29  
30  /**
31   * This is the LoginForm Struts Form. It is used by Login form.
32   * 
33   * @author ready
34   * 
35   */
36  public class LanguageForm extends ValidatorForm {
37  	/**
38  	 * 
39  	 */
40  	private static final long serialVersionUID = 1L;
41  	private String action = null;
42  	private String parentLocale = null;
43  	private String key = null;
44  	private String locale = null;
45  	private String localeTitle = null;
46  	private Map<String, String> items = new HashMap<String, String>();
47  	private String localeBaseTitle;
48  
49  	/*
50  	 * public void reset(ActionMapping mapping, HttpServletRequest request) {
51  	 * action = null; parentLocale = null; key= null; locale= null; HashMap<String,String>
52  	 * items = new HashMap<String,String>(); }
53  	 */
54  	public ActionErrors validate(ActionMapping mapping,
55  			HttpServletRequest request) {
56  		ActionErrors errors = super.validate(mapping, request);
57  		return errors;
58  	}
59  
60  	public String getAction() {
61  		return action;
62  	}
63  
64  	public void setAction(String action) {
65  		this.action = action;
66  	}
67  
68  	public Map<String, String> getItems() {
69  		return items;
70  	}
71  
72  	public void setItems(Map<String, String> items) {
73  		this.items = items;
74  	}
75  
76  	public String getKey() {
77  		return key;
78  	}
79  
80  	public void setKey(String key) {
81  		this.key = key;
82  	}
83  
84  	public String getLocale() {
85  		return locale;
86  	}
87  
88  	public void setLocale(String locale) {
89  		this.locale = locale;
90  	}
91  
92  	public String getParentLocale() {
93  		return parentLocale;
94  	}
95  
96  	public void setParentLocale(String parentLocale) {
97  		this.parentLocale = parentLocale;
98  	}
99  
100 	public String getLocaleTitle() {
101 		return localeTitle;
102 	}
103 
104 	public void setLocaleTitle(String localeTitle) {
105 		this.localeTitle = localeTitle;
106 	}
107 
108 	public void setLocaleBaseTitle(String resourceValue) {
109 		this.localeBaseTitle = resourceValue;
110 		
111 	}
112 	public String getLocaleBaseTitle() {
113 		return localeBaseTitle;
114 	}
115 
116 }