1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.cm.comment.form;
18
19 import org.kuali.rice.krad.web.form.KsUifFormBase;
20 import org.kuali.student.cm.comment.form.wrapper.CMCommentWrapper;
21 import org.kuali.student.r2.core.proposal.dto.ProposalInfo;
22
23 import java.util.ArrayList;
24 import java.util.List;
25
26
27
28
29
30
31 public class CMCommentForm extends KsUifFormBase {
32
33 protected List<CMCommentWrapper> comments = new ArrayList<CMCommentWrapper>();
34 protected String newComment;
35 protected ProposalInfo proposal;
36 protected CMCommentWrapper deletedComment;
37 protected boolean canAddComment = true;
38
39 public CMCommentForm(){
40
41 }
42
43 public List<CMCommentWrapper> getComments() {
44 return comments;
45 }
46
47 public void setComments(List<CMCommentWrapper> comments) {
48 this.comments = comments;
49 }
50
51 public ProposalInfo getProposal() {
52 return proposal;
53 }
54
55 public void setProposal(ProposalInfo proposal) {
56 this.proposal = proposal;
57 }
58
59 public String getNewComment() {
60 return newComment;
61 }
62
63 public void setNewComment(String newComment) {
64 this.newComment = newComment;
65 }
66
67 public CMCommentWrapper getDeletedComment() {
68 return deletedComment;
69 }
70
71 public void setDeletedComment(CMCommentWrapper deletedComment) {
72 this.deletedComment = deletedComment;
73 }
74
75 public boolean isCanAddComment() {
76 return canAddComment;
77 }
78
79 public void setCanAddComment(boolean canAddComment) {
80 this.canAddComment = canAddComment;
81 }
82
83 }