1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kns.web.struts.form;
17
18 import javax.servlet.http.HttpServletRequest;
19
20 import org.apache.commons.lang.StringUtils;
21 import org.apache.struts.action.ActionMapping;
22 import org.kuali.rice.krad.util.KRADConstants;
23
24
25
26
27
28 public class KualiFeedbackHandlerForm extends KualiForm {
29
30 private static final long serialVersionUID = -7641833777580490471L;
31
32 private boolean cancel = false;
33 private String description;
34 private String documentId = "";
35 private String componentName;
36
37
38
39
40 @Override
41 public void populate(HttpServletRequest request) {
42 super.populate(request);
43
44 if(StringUtils.isNotBlank(request.getParameter(KRADConstants.CANCEL_METHOD + ".x")) &&
45 StringUtils.isNotBlank(request.getParameter(KRADConstants.CANCEL_METHOD + ".y"))){
46 this.setCancel(true);
47 }
48 }
49
50 public void reset(ActionMapping mapping, HttpServletRequest request) {
51
52 this.setMethodToCall(null);
53 this.setRefreshCaller(null);
54 this.setAnchor(null);
55 this.setCurrentTabIndex(0);
56
57 this.cancel = false;
58 this.documentId = null;
59 this.description = null;
60 this.componentName = null;
61 }
62
63 public boolean isCancel() {
64 return cancel;
65 }
66
67 public void setCancel(boolean cancel) {
68 this.cancel = cancel;
69 }
70
71 public String getDescription() {
72 return description;
73 }
74
75 public void setDescription(String description) {
76 this.description = description;
77 }
78
79 public String getDocumentId() {
80 return documentId;
81 }
82
83 public void setDocumentId(String documentId) {
84 this.documentId = documentId;
85 }
86
87 public String getComponentName() {
88 return componentName;
89 }
90
91 public void setComponentName(String componentName) {
92 this.componentName = componentName;
93 }
94 }