1 /*
2 * FilterForm.java
3 *
4 * Created on February 11, 2003, 3:57 AM
5 */
6
7 package com.mlw.fps.view.form;
8
9 import java.util.Date;
10
11 import javax.servlet.http.HttpServletRequest;
12
13 import org.apache.struts.action.ActionForm;
14 import org.apache.struts.action.ActionMapping;
15
16 import com.mlw.fps.model.business.vo.SystemFilters;
17
18 /***
19 *
20 * @author Matthew Wilson
21 */
22 public class FilterForm extends ActionForm
23 {
24 private String forward= null;
25
26 private String[] players= {
27 };
28 private boolean playerEnabled;
29
30 private String[] weapons= {
31 };
32 private boolean weaponEnabled;
33
34 private String startDate;
35 private String endDate;
36 private boolean dateEnabled;
37
38 private String[] maps;
39 private boolean mapEnabled;
40
41 /*** Creates a new instance of FilterForm
42 */
43 public FilterForm()
44 {
45 }
46
47 public void reset(ActionMapping a, HttpServletRequest r)
48 {
49 if( startDate==null) startDate = SystemFilters.FORMAT.format(new Date());
50
51 forward= null;
52 weaponEnabled= false;
53 playerEnabled= false;
54 dateEnabled= false;
55 mapEnabled= false;
56
57 /*
58 SystemFilters filters= ((ViewManager)r.getSession().getAttribute("viewManager")).getFilterManager().getSystemFilters();
59 if (filters.getFilter("startDate") != null)
60 startDate= SystemFilters.FORMAT.format(filters.getFilter("startDate"));
61
62 if (filters.getFilter("endDate") != null)
63 endDate= SystemFilters.FORMAT.format(filters.getFilter("endDate"));
64 */
65
66 }
67
68 public String[] getPlayers()
69 {
70 return players;
71 }
72
73 public void setPlayers(String[] players)
74 {
75 this.players= players;
76 }
77
78 /*** Getter for property playerEnabled.
79 * @return Value of property playerEnabled.
80 */
81 public boolean isPlayerEnabled()
82 {
83 return this.playerEnabled;
84 }
85
86 /*** Setter for property playerEnabled.
87 * @param playerEnabled New value of property playerEnabled.
88 */
89 public void setPlayerEnabled(boolean playerEnabled)
90 {
91 this.playerEnabled= playerEnabled;
92 }
93
94 /*** Getter for property weapons.
95 * @return Value of property weapons.
96 */
97 public String[] getWeapons()
98 {
99 return this.weapons;
100 }
101
102 /*** Setter for property weapons.
103 * @param weapons New value of property weapons.
104 */
105 public void setWeapons(String[] weapons)
106 {
107 this.weapons= weapons;
108 }
109
110 /*** Getter for property weaponEnabled.
111 * @return Value of property weaponEnabled.
112 */
113 public boolean isWeaponEnabled()
114 {
115 return this.weaponEnabled;
116 }
117
118 /*** Setter for property weaponEnabled.
119 * @param weaponEnabled New value of property weaponEnabled.
120 */
121 public void setWeaponEnabled(boolean weaponEnabled)
122 {
123 this.weaponEnabled= weaponEnabled;
124 }
125
126 /*** Getter for property startDdate.
127 * @return Value of property startDdate.
128 */
129 public String getStartDate()
130 {
131 return this.startDate;
132 }
133
134 /*** Setter for property startDdate.
135 * @param startDdate New value of property startDdate.
136 */
137 public void setStartDate(String startDate)
138 {
139 this.startDate= startDate;
140 }
141
142 /*** Getter for property endDate.
143 * @return Value of property endDate.
144 */
145 public String getEndDate()
146 {
147 return this.endDate;
148 }
149
150 /*** Setter for property endDate.
151 * @param endDate New value of property endDate.
152 */
153 public void setEndDate(String endDate)
154 {
155 this.endDate= endDate;
156 }
157
158 /*** Getter for property datesEnabled.
159 * @return Value of property datesEnabled.
160 */
161 public boolean isDateEnabled()
162 {
163 return this.dateEnabled;
164 }
165
166 /*** Setter for property datesEnabled.
167 * @param datesEnabled New value of property datesEnabled.
168 */
169 public void setDateEnabled(boolean dateEnabled)
170 {
171 this.dateEnabled= dateEnabled;
172 }
173
174 /*** Getter for property mapEnabled.
175 * @return Value of property mapEnabled.
176 */
177 public boolean isMapEnabled()
178 {
179 return this.mapEnabled;
180 }
181
182 /*** Setter for property mapEnabled.
183 * @param mapEnabled New value of property mapEnabled.
184 */
185 public void setMapEnabled(boolean mapEnabled)
186 {
187 this.mapEnabled= mapEnabled;
188 }
189
190 /*** Getter for property maps.
191 * @return Value of property maps.
192 */
193 public String[] getMaps()
194 {
195 return this.maps;
196 }
197
198 /*** Setter for property maps.
199 * @param maps New value of property maps.
200 */
201 public void setMaps(String[] maps)
202 {
203 this.maps= maps;
204 }
205
206 /***
207 * @return
208 */
209 public String getForward()
210 {
211 return forward;
212 }
213
214 /***
215 * @param string
216 */
217 public void setForward(String string)
218 {
219 forward= string;
220 }
221
222 }
This page was automatically generated by Maven