1 16 package com.blandware.atleap.webapp.form.core; 17 18 import com.blandware.atleap.webapp.form.BaseForm; 19 import org.apache.struts.action.ActionMapping; 20 21 import javax.servlet.http.HttpServletRequest ; 22 23 33 public class SearchForm extends BaseForm { 34 35 38 protected String query = null; 39 42 protected String searchLanguage = null; 43 46 protected String timePeriod = "0"; 47 48 53 public String getQuery() { 54 return query; 55 } 56 57 62 public void setQuery(String query) { 63 this.query = query; 64 } 65 66 71 public String getSearchLanguage() { 72 return searchLanguage; 73 } 74 75 80 public void setSearchLanguage(String searchLanguage) { 81 this.searchLanguage = searchLanguage; 82 } 83 84 90 public String getTimePeriod() { 91 return timePeriod; 92 } 93 94 101 public void setTimePeriod(String timePeriod) { 102 this.timePeriod = timePeriod; 103 } 104 105 106 112 public void reset(ActionMapping mapping, HttpServletRequest request) { 113 this.query = null; 114 this.searchLanguage = null; 115 this.timePeriod = "0"; 116 } 117 118 } | Popular Tags |