Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.bboard
Class TopicList  view TopicList download TopicList.java

java.lang.Object
  extended bycom.RuntimeCollective.webapps.LazyListWrapper
      extended bycom.RuntimeCollective.bboard.TopicList
All Implemented Interfaces:
java.util.Collection, java.lang.Iterable, java.util.List

public class TopicList
extends com.RuntimeCollective.webapps.LazyListWrapper

A list of topics for a bulletin board. All list methods simply wrap the underlying lazyList.


Field Summary
 
Fields inherited from class com.RuntimeCollective.webapps.LazyListWrapper
lazyList
 
Constructor Summary
TopicList(com.RuntimeCollective.webapps.LazyEBList lazyList)
          Construct a new empty Topic List, given a LazyList.
 
Method Summary
 void addTopic(com.RuntimeCollective.bboard.bean.Topic topic)
          Add a topic to the list.
 java.util.List getTopics()
          Get the topics in the list.
 java.util.List getTopicsByMessageDate()
          Orders topics by date of last message (most recent first).
 
Methods inherited from class com.RuntimeCollective.webapps.LazyListWrapper
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicList

public TopicList(com.RuntimeCollective.webapps.LazyEBList lazyList)
Construct a new empty Topic List, given a LazyList.

Method Detail

addTopic

public void addTopic(com.RuntimeCollective.bboard.bean.Topic topic)
Add a topic to the list. Note that this will not update the relevant board -- use Board.addTopic() instead.


getTopics

public java.util.List getTopics()
Get the topics in the list. The order is the same as that defined by the construction vector.


getTopicsByMessageDate

public java.util.List getTopicsByMessageDate()
Orders topics by date of last message (most recent first). This was marked as "deprecated - this instantiates all elements of the backing lazyList, which is not desirable. Use Board.getTopicListByMessageDate instead". But Board.getTopicListByMessageDate seems to sort by lastModifiedDate instead.