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

Quick Search    Search Deep

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

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

public class MessageList
extends com.RuntimeCollective.webapps.LazyListWrapper

A list of messages for a bulletin board.


Field Summary
 
Fields inherited from class com.RuntimeCollective.webapps.LazyListWrapper
lazyList
 
Constructor Summary
MessageList(com.RuntimeCollective.webapps.LazyEBList lazyList)
          Construct a new empty message list, given a LazyEBList.
 
Method Summary
 void addMessage(com.RuntimeCollective.bboard.bean.Message message)
          Add a message to the list.
 java.util.Date getLastMessageDate()
          Get the date of the last message on this list.
 int getLength()
          Get the number of messages in this list.
 java.util.List getMessages()
          Get the messages in the list.
 java.util.List getMessagesByReverseDate()
          Get the messages by reverse date.
 int getReplies()
          get the number of replies to the original message.
 
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

MessageList

public MessageList(com.RuntimeCollective.webapps.LazyEBList lazyList)
Construct a new empty message list, given a LazyEBList.

Method Detail

addMessage

public void addMessage(com.RuntimeCollective.bboard.bean.Message message)
Add a message to the list. Note that this does not update the topic itself -- use Topic.addMessage instead.


getLength

public int getLength()
Get the number of messages in this list.


getReplies

public int getReplies()
get the number of replies to the original message.


getMessages

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


getLastMessageDate

public java.util.Date getLastMessageDate()
Get the date of the last message on this list. We'll permit the instantiation of a single Message, here.


getMessagesByReverseDate

public java.util.List getMessagesByReverseDate()
Get the messages by reverse date. In fact, assumes the List is sorted by date presently, so merely returns the list in reverse order.