Source code: org/sbugs/forms/EditDefectForm.java
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; version 2 only.
5 *
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 * GNU General Public License for more details.
10 *
11 * You should have received a copy of the GNU General Public License
12 * along with this program; if not, write to the Free Software
13 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14 */
15 package org.sbugs.forms;
16
17 import org.apache.struts.action.ActionForm;
18
19 public class EditDefectForm extends ActionForm
20 {
21 private int priorityId;
22 private int severityId;
23
24 private String note;
25
26 public EditDefectForm()
27 {
28 }
29
30 public void setPriorityId( int id )
31 {
32 priorityId = id;
33 }
34
35 public int getPriorityId()
36 {
37 return priorityId;
38 }
39
40 public void setSeverityId( int id )
41 {
42 severityId = id;
43 }
44
45 public int getSeverityId()
46 {
47 return severityId;
48 }
49
50 public void setNote( String noteParam )
51 {
52 note = noteParam;
53 }
54
55 public String getNote()
56 {
57 return note;
58 }
59
60 public boolean ready()
61 {
62 return ( getPriorityId() != 0
63 || getSeverityId() != 0
64 || getNote() != null );
65 }
66 }