1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.itracker.web.forms;
20
21 import org.apache.struts.action.ActionErrors;
22 import org.apache.struts.action.ActionMapping;
23 import org.apache.struts.validator.ValidatorForm;
24
25 import javax.servlet.http.HttpServletRequest;
26
27
28
29
30
31
32 public class TaskForm extends ValidatorForm {
33
34
35
36 private static final long serialVersionUID = 1L;
37 String action;
38 Integer id;
39 String months;
40 String daysOfMonth;
41 String hours;
42 String minutes;
43 String weekdays;
44 String className;
45 String classNameText;
46 String args;
47
48 public void reset(ActionMapping mapping, HttpServletRequest request) {
49 action = null;
50 id = null;
51 months = null;
52 daysOfMonth = null;
53 hours = null;
54 minutes = null;
55 weekdays = null;
56 className = null;
57 classNameText = null;
58 args = null;
59
60 }
61
62 public ActionErrors validate(ActionMapping mapping,
63 HttpServletRequest request) {
64 ActionErrors errors = super.validate(mapping, request);
65
66 return errors;
67 }
68
69 public String getAction() {
70 return action;
71 }
72
73 public void setAction(String action) {
74 this.action = action;
75 }
76
77 public String getArgs() {
78 return args;
79 }
80
81 public void setArgs(String args) {
82 this.args = args;
83 }
84
85 public String getClassName() {
86 return className;
87 }
88
89 public void setClassName(String className) {
90 this.className = className;
91 }
92
93 public String getClassNameText() {
94 return classNameText;
95 }
96
97 public void setClassNameText(String classNameText) {
98 this.classNameText = classNameText;
99 }
100
101 public String getDaysOfMonth() {
102 return daysOfMonth;
103 }
104
105 public void setDaysOfMonth(String daysOfMonth) {
106 this.daysOfMonth = daysOfMonth;
107 }
108
109 public String getHours() {
110 return hours;
111 }
112
113 public void setHours(String hours) {
114 this.hours = hours;
115 }
116
117 public Integer getId() {
118 return id;
119 }
120
121 public void setId(Integer id) {
122 this.id = id;
123 }
124
125 public String getMinutes() {
126 return minutes;
127 }
128
129 public void setMinutes(String minutes) {
130 this.minutes = minutes;
131 }
132
133 public String getMonths() {
134 return months;
135 }
136
137 public void setMonths(String months) {
138 this.months = months;
139 }
140
141 public String getWeekdays() {
142 return weekdays;
143 }
144
145 public void setWeekdays(String weekdays) {
146 this.weekdays = weekdays;
147 }
148
149 }