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 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   * This is the LoginForm Struts Form. It is used by Login form.
29   *
30   * @author ready
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 }