View Javadoc
1   /**
2    * Copyright 2014 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   *
15   * Created by venkat on 6/9/14
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   * Form class to handle comments functionality.
28   *
29   * @author Kuali Student Team
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  }