You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Interface grendel.view.MessageSetView

Represents a view on messages. There is no implication that these messages all come from the same Folder, or even from the same kind of Folder.

The messages are presented in a particular sorted order, and have also possibly been threaded.


public interface  MessageSetView
{
          // Fields 8
     public static final int AUTHOR;
     public static final int DATE;
     public static final int DELETED;
     public static final int FLAGGED;
     public static final int NUMBER;
     public static final int READ;
     public static final int SIZE;
     public static final int SUBJECT;

          // Methods 9
     public abstract void addObserver(MessageSetViewObserver);
     public abstract ViewedMessage getMessageRoot();
     public abstract int[] getSortOrder();
     public abstract boolean isThreaded();
     public abstract void prependSortOrder(int);
     public abstract void reThread();
     public abstract void removeObserver(MessageSetViewObserver);
     public abstract void setIsThreaded(boolean);
     public abstract void setSortOrder(int[]);
}



Fields


NUMBER

   public static final int NUMBER


DATE

   public static final int DATE


SUBJECT

   public static final int SUBJECT


AUTHOR

   public static final int AUTHOR


READ

   public static final int READ


FLAGGED

   public static final int FLAGGED


SIZE

   public static final int SIZE


DELETED

   public static final int DELETED



Methods


getMessageRoot

   public abstract ViewedMessage getMessageRoot() 

Gets the root of the tree of messages that are being viewed.



setSortOrder

   public abstract void setSortOrder(int[] order) 

Set the sort order for display. This is an array of the sort keys listed above. It is an array so that the caller can define secondary sorts. Duplicates will be removed and other optimizations possibly made, so getSortOrder() may not necessarily return the same thing. Note that the messages won't actually get resorted until reThread() is called.



prependSortOrder

   public abstract void prependSortOrder(int order) 

Prepend a new sort order. This will become the new primary sort; whatever sort was being done becomes secondary sorts. Note that the messages won't actually get resorted until reThread() is called.



getSortOrder

   public abstract int[] getSortOrder() 


setIsThreaded

   public abstract void setIsThreaded(boolean b) 

Set whether to do threading on these messages. If false, then things just get sorted into one long list. Note that the messages won't actually get resorted or threaded until reThread() is called.



isThreaded

   public abstract boolean isThreaded() 


reThread

   public abstract void reThread() 

Cause the messages to get resorted and possibly threaded, according to previous calls to setSortOrder(), prependSortOrder(), and setIsThreaded().



addObserver

   public abstract void addObserver(MessageSetViewObserver obs) 


removeObserver

   public abstract void removeObserver(MessageSetViewObserver obs) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4