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.FolderPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JPanel
                                   |
                                   +----grendel.ui.GeneralPanel
                                           |
                                           +----grendel.ui.FolderPanel

Panel to display the contents of a folder.


public class  FolderPanel
     extends grendel.ui.GeneralPanel
{
          // Fields 28
     IUICmd[] fActions;
     ColumnModel fColumnModel;
     IUICmd fDeleteMessageAction;
     Folder fFolder;
     Thread fFolderLoadThread;
     FolderPanelListener fListeners;
     IUICmd fMarkAllReadAction;
     IUICmd fMarkMsgReadAction;
     IUICmd fMarkThreadReadAction;
     TreeTable fMessageTree;
     MessageModel fModel;
     IUICmd fOpenMessageAction;
     FolderPanel fPanel;
     IUICmd fReplyAction;
     IUICmd fReplyAllAction;
     SelectionListener fSelectionListener;
     SortAction[] fSortActions;
     IUICmd fThreadAction;
     FolderView fView;
     public static final int kAll;
     public static final String kDateID;
     public static final String kDeletedID;
     public static final String kFlagID;
     public static final int kMessage;
     public static final String kReadID;
     public static final String kSenderID;
     public static final String kSubjectID;
     public static final int kThread;

          // Constructors 1
     public FolderPanel();

          // Methods 15
     public void addFolderPanelListener(FolderPanelListener);
     public void dispose();
     public IUICmd[] getActions();
     synchronized Vector getAllMessagesVector();
     private synchronized void getAllMessagesVector(ViewedMessage, Vector);
     public Folder getFolder();
     synchronized Vector getSelectedMessageVector();
     synchronized Vector getSelectedViewedMessageVector();
     public Enumeration getSelection();
     synchronized Vector getSelectionVector();
     public NSToolbar getToolBar();
     public boolean isOpaque();
     public void removeFolderPanelListener(FolderPanelListener);
     public synchronized void setFolder(Folder);
     void updateSortMenu();

          // Inner Classes 14
     class MessageSelectionListener
     class ColumnListener
     class LoadFolderThread
     class OpenMessageAction
     class DeleteMessageAction
     class CopyMessageAction
     class MoveMessageAction
     class ThreadAction
     class SortAction
     class ReplyAction
     class MarkAction
     class FPClipboardOwner
     class CopyToClipboardAction
     class PasteFromClipboardAction
}



Fields


fMessageTree

   TreeTable fMessageTree


fFolder

   Folder fFolder


fFolderLoadThread

   Thread fFolderLoadThread


fView

   FolderView fView


fModel

   MessageModel fModel


fPanel

   FolderPanel fPanel


fListeners

   FolderPanelListener fListeners


fSelectionListener

   SelectionListener fSelectionListener


fColumnModel

   ColumnModel fColumnModel


kSenderID

   public static final String kSenderID

The Sender column ID


kSubjectID

   public static final String kSubjectID

The Subject column ID


kDateID

   public static final String kDateID

The Date column ID


kReadID

   public static final String kReadID

The read column ID


kFlagID

   public static final String kFlagID

The flag column ID


kDeletedID

   public static final String kDeletedID

The Deleted (X) column ID


kMessage

   public static final int kMessage

The individual message scope


kThread

   public static final int kThread

The thread scope


kAll

   public static final int kAll

The all messages scope


fDeleteMessageAction

   IUICmd fDeleteMessageAction


fOpenMessageAction

   IUICmd fOpenMessageAction


fReplyAction

   IUICmd fReplyAction


fReplyAllAction

   IUICmd fReplyAllAction


fMarkMsgReadAction

   IUICmd fMarkMsgReadAction


fMarkThreadReadAction

   IUICmd fMarkThreadReadAction


fMarkAllReadAction

   IUICmd fMarkAllReadAction


fThreadAction

   IUICmd fThreadAction


fActions

   IUICmd[] fActions


fSortActions

   SortAction[] fSortActions



Constructors


FolderPanel

   public FolderPanel() 

Constructs a folder panel




Methods


dispose

   public void dispose() 


setFolder

   public synchronized void setFolder(Folder aFolder) 

Sets the folder displayed to the given folder. If the folder is null, the folder display is cleared.



getFolder

   public Folder getFolder() 

Returns the current folder



getSelection

   public Enumeration getSelection() 

Returns an enumeration of TreePathss representing the current selection. The tips of the paths are ViewedMessages.



getActions

   public IUICmd[] getActions() 

Returns the actions available for this panel

Overrides:
getActions in class GeneralPanel


getToolBar

   public NSToolbar getToolBar() 

Returns the toolbar associated with this panel.

Overrides:
getToolBar in class GeneralPanel


addFolderPanelListener

   public void addFolderPanelListener(FolderPanelListener aListener) 

Adds a FolderPanelListener



removeFolderPanelListener

   public void removeFolderPanelListener(FolderPanelListener aListener) 

Removes a FolderPanelListener



isOpaque

   public boolean isOpaque() 
Overrides:
isOpaque in class JComponent


updateSortMenu

   void updateSortMenu() 

Syncs the sort menu items when the view or sort changes



getSelectionVector

   synchronized Vector getSelectionVector() 

Returns the current selection as a vector



getSelectedMessageVector

   synchronized Vector getSelectedMessageVector() 


getSelectedViewedMessageVector

   synchronized Vector getSelectedViewedMessageVector() 

Like getSelectedMessageVector() but returns a Vector of ViewedMessages instead of a Vector of Messages.



getAllMessagesVector

   synchronized Vector getAllMessagesVector() 

Returns a Vector of all Messages (not including dummies.)



getAllMessagesVector

   private synchronized void getAllMessagesVector(ViewedMessage m, 
                                                  Vector v) 

Writes the message and all of its children into the vector.



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