KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > cactus > ArticleThreadMBean


1 package org.apache.myfaces.cactus;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 public class ArticleThreadMBean {
7     private String JavaDoc title;
8     private String JavaDoc replyTitle;
9     private String JavaDoc result;
10     private ArticleThreadTableMBean parent;
11
12     void setParent(ArticleThreadTableMBean parent) {
13         this.parent = parent;
14     }
15
16     public String JavaDoc getTitle() {
17         return title;
18     }
19
20     public void setTitle(String JavaDoc title) {
21         this.title = title;
22         replyTitle = "Re: " + title;
23     }
24
25     public void setReplyTitle(String JavaDoc replyTitle) {
26         this.replyTitle = replyTitle;
27     }
28
29     public String JavaDoc getReplyTitle() {
30         return replyTitle;
31     }
32
33     public String JavaDoc reply() {
34         parent.setResult(replyTitle);
35         return "";
36     }
37 }
38
Popular Tags