java.lang.Object
com.RuntimeCollective.webapps.LazyListWrapper
com.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.
| 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 |
TopicList
public TopicList(com.RuntimeCollective.webapps.LazyEBList lazyList)
- Construct a new empty Topic List,
given a LazyList.
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.