1 package org.apache.myfaces.cactus; 2 3 import java.util.List ; 4 import java.util.ArrayList ; 5 import java.util.Collections ; 6 7 public class ArticleThreadTableMBean { 8 private String result; 9 10 public List getArticleThreadTable() { 11 List ret = new ArrayList (); 12 ArticleThreadMBean thread = new ArticleThreadMBean(); 13 thread.setTitle("First Title"); 14 thread.setParent(this); 15 ret.add(thread); 16 thread = new ArticleThreadMBean(); 17 thread.setTitle("Second Title"); 18 thread.setParent(this); 19 ret.add(thread); 20 return Collections.unmodifiableList(ret); 21 } 22 23 void setResult(String result) { 24 this.result = result; 25 } 26 27 public String getResult() { 28 return result; 29 } 30 } 31 | Popular Tags |