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.view.ViewedFolderBase

java.lang.Object
   |
   +----grendel.view.ViewedFolderBase

class  ViewedFolderBase
     extends java.lang.Object
     implements grendel.view.ViewedFolder
{
          // Fields 14
     boolean fBuilt;
     ViewedFolderBase fChild;
     Folder fFolder;
     boolean fInbox;
     int fMessageCount;
     ViewedFolderBase fNext;
     boolean fOpened;
     ViewedFolderBase fParent;
     ViewedFolderBase fThis;
     int fUndeletedCount;
     int fUnreadCount;
     Thread fUpdateThread;
     ViewedStoreBase fViewedStore;
     static final String kInbox;

          // Constructors 1
     public ViewedFolderBase(ViewedStoreBase, ViewedFolderBase, Folder);

          // Methods 21
     void addSubFolder(ViewedFolderBase);
     public ViewedFolder getFirstSubFolder();
     public Folder getFolder();
     public int getMessageCount();
     public ViewedFolder getNextFolder();
     public ViewedFolder getParentFolder();
     public int getUndeletedMessageCount();
     public int getUnreadMessageCount();
     public ViewedFolder getViewedFolder(Folder) throws MessagingException;
     public ViewedStore getViewedStore();
     public boolean isInbox();
     public boolean isOpen();
     void removeSubFolder(ViewedFolderBase);
     void setCounts(int, int, int);
     protected void setFolder(Folder);
     void setNextFolder(ViewedFolderBase);
     public String toString();
     void updateCounts();
     void updateMessageCount();
     void updateUndeletedCount();
     void updateUnreadCount();

          // Inner Classes 2
     class FolderChangeListener
     class FolderComparer
}



Fields


• kInbox

   static final String kInbox


• fFolder

   Folder fFolder


• fThis

   ViewedFolderBase fThis


• fParent

   ViewedFolderBase fParent


• fNext

   ViewedFolderBase fNext


• fChild

   ViewedFolderBase fChild


• fViewedStore

   ViewedStoreBase fViewedStore


• fBuilt

   boolean fBuilt


• fOpened

   boolean fOpened


• fInbox

   boolean fInbox


• fMessageCount

   int fMessageCount


• fUnreadCount

   int fUnreadCount


• fUndeletedCount

   int fUndeletedCount


• fUpdateThread

   Thread fUpdateThread



Constructors


• ViewedFolderBase

   public ViewedFolderBase(ViewedStoreBase aStore, 
                           ViewedFolderBase aParent, 
                           Folder aFolder) 

Constructor




Methods


• setFolder

   protected void setFolder(Folder aFolder) 



• getFolder

   public Folder getFolder() 

Returns the associated folder

Implements:
getFolder in interface ViewedFolder


• isOpen

   public boolean isOpen() 

Returns whether we thing the folder is opened



• getViewedFolder

   public ViewedFolder getViewedFolder(Folder aFolder)  throws MessagingException

Returns the ViewedFolder associated with the given folder. The Folder object inside the ViewedFolder may not be the same as the object passed in, but it will always represent the same folder

Implements:
getViewedFolder in interface ViewedFolder


• getMessageCount

   public int getMessageCount() 

Get cached message count data, since some protocols will hit the server for each call.

Implements:
getMessageCount in interface ViewedFolder


• getUnreadMessageCount

   public int getUnreadMessageCount() 

Get cached unread count, since some protocols will hit the server for each call.

Implements:
getUnreadMessageCount in interface ViewedFolder


• getUndeletedMessageCount

   public int getUndeletedMessageCount() 

Get cached undeleted message count, since some protocols will hit the server for each call.

Implements:
getUndeletedMessageCount in interface ViewedFolder


• getNextFolder

   public ViewedFolder getNextFolder() 

Returns the next folder at this level.

Implements:
getNextFolder in interface ViewedFolder


• getFirstSubFolder

   public ViewedFolder getFirstSubFolder() 

Returns the first subfolder of this folder.

Implements:
getFirstSubFolder in interface ViewedFolder


• getParentFolder

   public ViewedFolder getParentFolder() 

Returns the parent folder. Returns null for the default folder for a session.

Implements:
getParentFolder in interface ViewedFolder


• getViewedStore

   public ViewedStore getViewedStore() 

Returns the associated store

Implements:
getViewedStore in interface ViewedFolder


• isInbox

   public boolean isInbox() 

Returns whether this is an inbox

Implements:
isInbox in interface ViewedFolder


• setNextFolder

   void setNextFolder(ViewedFolderBase aNext) 


• addSubFolder

   void addSubFolder(ViewedFolderBase aFolder) 


• removeSubFolder

   void removeSubFolder(ViewedFolderBase aFolder) 


• updateMessageCount

   void updateMessageCount() 


• updateUnreadCount

   void updateUnreadCount() 


• updateUndeletedCount

   void updateUndeletedCount() 


• updateCounts

   void updateCounts() 


• setCounts

   void setCounts(int messages, 
                  int unread, 
                  int undeleted) 


• toString

   public String toString() 
Overrides:
toString in class Object


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