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

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

public class  ViewedStoreBase
     extends grendel.view.ViewedFolderBase
     implements grendel.view.ViewedStore
{
          // Fields 14
     boolean fConnected;
     ViewedFolder fDefaultFolder;
     String fHost;
     EventListenerList fListeners;
     ViewedStore fNext;
     int fPort;
     String fPrefBase;
     String fProto;
     boolean fSorted;
     Store fStore;
     Vector fUpdateQueue;
     Thread fUpdateThread;
     String fUser;
     int fVisible;

          // Constructors 1
     public ViewedStoreBase(Store, String, String, int, String);

          // Methods 19
     void addFolderUpdate(ViewedFolderBase);
     public void addViewedStoreListener(ViewedStoreListener);
     void checkConnected() throws MessagingException;
     public ViewedFolder getDefaultFolder() throws MessagingException;
     public Folder getFolder();
     public String getHost();
     public int getPort();
     public String getProtocol();
     public Store getStore();
     public String getUsername();
     public int getVisible();
     public boolean isConnected();
     boolean isSorted();
     void notifyFolderChanged(ViewedFolderBase);
     void notifyFolderCreated(Folder) throws MessagingException;
     void notifyFolderDeleted(ViewedFolderBase) throws MessagingException;
     public void removeViewedStoreListener(ViewedStoreListener);
     public void setVisible(int);
     public String toString();

          // Inner Classes 3
     class StoreConnectionListener
     class StoreFolderListener
     class UpdateCountThread
}



Fields


fUpdateQueue

   Vector fUpdateQueue


fUpdateThread

   Thread fUpdateThread


fDefaultFolder

   ViewedFolder fDefaultFolder


fStore

   Store fStore


fProto

   String fProto


fHost

   String fHost


fUser

   String fUser


fPrefBase

   String fPrefBase


fPort

   int fPort


fNext

   ViewedStore fNext


fConnected

   boolean fConnected


fSorted

   boolean fSorted


fVisible

   int fVisible


fListeners

   EventListenerList fListeners



Constructors


ViewedStoreBase

   public ViewedStoreBase(Store aStore, 
                          String aProto, 
                          String aHost, 
                          int aPort, 
                          String aUser) 

ViewedStoreBase constructor. This should be called before any attempt to connect so that it can reflect the correct connection state.




Methods


getFolder

   public Folder getFolder() 

Returns the associated folder

Overrides:
getFolder in class ViewedFolderBase


getStore

   public Store getStore() 

Returns the associated store.

Implements:
getStore in interface ViewedStore


getDefaultFolder

   public ViewedFolder getDefaultFolder()  throws MessagingException

Returns the store's default folder wrapped in a ViewedFolder object.

Implements:
getDefaultFolder in interface ViewedStore


getProtocol

   public String getProtocol() 

Returns the protocol used by this store.

Implements:
getProtocol in interface ViewedStore


getHost

   public String getHost() 

Returns the host for this store. Returns null for a local store.

Implements:
getHost in interface ViewedStore


getUsername

   public String getUsername() 

Returns the user name used to connect. May return null if no user name was used.

Implements:
getUsername in interface ViewedStore


getPort

   public int getPort() 

Returns the port used to connect. Returns -1 for the protocol default.

Implements:
getPort in interface ViewedStore


isConnected

   public boolean isConnected() 

Returns the connected state of this store

Implements:
isConnected in interface ViewedStore


addViewedStoreListener

   public void addViewedStoreListener(ViewedStoreListener l) 

Adds a ViewedStoreListener

Implements:
addViewedStoreListener in interface ViewedStore


removeViewedStoreListener

   public void removeViewedStoreListener(ViewedStoreListener l) 

Removes a ViewedStoreListener

Implements:
removeViewedStoreListener in interface ViewedStore


checkConnected

   void checkConnected()  throws MessagingException


isSorted

   boolean isSorted() 


setVisible

   public void setVisible(int aVisible) 

Sets which children to show for this store

Implements:
setVisible in interface ViewedStore


getVisible

   public int getVisible() 

Returns which children are showing for this store

Implements:
getVisible in interface ViewedStore


toString

   public String toString() 
Overrides:
toString in class ViewedFolderBase


addFolderUpdate

   void addFolderUpdate(ViewedFolderBase aFolder) 


notifyFolderChanged

   void notifyFolderChanged(ViewedFolderBase aFolder) 


notifyFolderDeleted

   void notifyFolderDeleted(ViewedFolderBase aFolder)  throws MessagingException


notifyFolderCreated

   void notifyFolderCreated(Folder aFolder)  throws MessagingException


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