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

Class grendel.ui.MessageDisplayManager

java.lang.Object
   |
   +----grendel.ui.MessageDisplayManager

Handles attempts to view messages, folders and their contents, without assuptions about the UI layout. Potential side affects for given actions are detailed. The resulting window state should be order independent if overlapping arguments are the same with the exception of window focus. That is,

 displayMaster(folderA);
 displayFolder(folderA, messageA);
 
should result in the same windows and selections as
 displayFolder(foldarA, messageA);
 displayMaster(folderA);
 
but the result of
 displayFolder(folderA, messageA);
 displayMaster(folderB):
 
is undefined. If multiple windows are opened as the result of multiple calls, focus will be shifted to the last opened window. Focus will always be shifted to the last acted upon view.


public abstract class  MessageDisplayManager
     extends java.lang.Object
{
          // Fields 1
     static volatile MessageDisplayManager fManager;

          // Constructors 1
     public MessageDisplayManager();

          // Methods 7
     public static synchronized MessageDisplayManager GetDefaultManager();
     public static synchronized void SetDefaultManager(MessageDisplayManager);
     public abstract void displayFolder(Folder);
     public abstract void displayFolder(Folder, Message);
     public abstract void displayMaster();
     public abstract void displayMaster(Folder);
     public abstract void displayMessage(Message);
}



Fields


fManager

   static volatile MessageDisplayManager fManager



Constructors


MessageDisplayManager

   public MessageDisplayManager() 

Default constructor




Methods


SetDefaultManager

   public static synchronized void SetDefaultManager(MessageDisplayManager aManager) 

Sets the default message display manager



GetDefaultManager

   public static synchronized MessageDisplayManager GetDefaultManager() 

Gets the default message display manager



displayMessage

   public abstract void displayMessage(Message aMessage) 

Displays a message given a Message object. This may affect displayed folders.



displayFolder

   public abstract void displayFolder(Folder aFolder) 

Displays a folder given a folder object. This may affect displayed messages.



displayFolder

   public abstract void displayFolder(Folder aFolder, 
                                      Message aMessage) 

Displays folder given a Folder object and selects a message in that folder given a Message object. This may or may not also display the message, but it will not open multiple windows.



displayMaster

   public abstract void displayMaster() 

Displays the master (A folder tree, for now). This should not affect displayed folders or messages.



displayMaster

   public abstract void displayMaster(Folder aFolder) 

Displays the master with the given folder selected. This may affect displayed folders and messages.



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