1 12 13 package org.ejtools.jmx.browser.web.form; 14 15 16 17 import javax.servlet.http.HttpServletRequest ; 18 19 20 21 import org.apache.struts.action.ActionErrors; 22 23 import org.apache.struts.action.ActionForm; 24 25 import org.apache.struts.action.ActionMapping; 26 27 28 29 44 45 public class SearchForm extends ActionForm 46 47 { 48 49 50 51 protected String attribute = ""; 52 53 54 55 protected String filter = "*:*"; 56 57 58 59 protected String query = ""; 60 61 62 63 protected String type = "java.lang.String"; 64 65 66 67 protected String value = ""; 68 69 70 71 72 73 74 75 public SearchForm() { } 76 77 78 79 80 81 90 91 public String getAttribute() 92 93 { 94 95 return this.attribute; 96 97 } 98 99 100 101 102 103 112 113 public String getFilter() 114 115 { 116 117 return this.filter; 118 119 } 120 121 122 123 124 125 134 135 public String getQuery() 136 137 { 138 139 return this.query; 140 141 } 142 143 144 145 146 147 156 157 public String getType() 158 159 { 160 161 return this.type; 162 163 } 164 165 166 167 168 169 178 179 public String getValue() 180 181 { 182 183 return this.value; 184 185 } 186 187 188 189 190 191 202 203 public void reset(ActionMapping mapping, HttpServletRequest request) 204 205 { 206 207 this.filter = "*:*"; 208 209 } 210 211 212 213 214 215 224 225 public void setAttribute(String attribute) 226 227 { 228 229 this.attribute = attribute; 230 231 } 232 233 234 235 236 237 246 247 public void setFilter(String filter) 248 249 { 250 251 this.filter = filter; 252 253 } 254 255 256 257 258 259 268 269 public void setQuery(String query) 270 271 { 272 273 this.query = query; 274 275 } 276 277 278 279 280 281 290 291 public void setType(String type) 292 293 { 294 295 this.type = type; 296 297 } 298 299 300 301 302 303 312 313 public void setValue(String value) 314 315 { 316 317 this.value = value; 318 319 } 320 321 322 323 324 325 338 339 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) 340 341 { 342 343 ActionErrors errors = new ActionErrors(); 344 345 346 347 358 359 return errors; 360 361 } 362 363 } 364 365 | Popular Tags |