|
Class grendel.view.ViewedStoreBase
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
Vector fUpdateQueue
Thread fUpdateThread
ViewedFolder fDefaultFolder
Store fStore
String fProto
String fHost
String fUser
String fPrefBase
int fPort
ViewedStore fNext
boolean fConnected
boolean fSorted
int fVisible
EventListenerList fListeners
Constructors
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
public Folder getFolder()
Returns the associated folder
- Overrides:
- getFolder in class ViewedFolderBase
public Store getStore()
Returns the associated store.
- Implements:
- getStore in interface ViewedStore
public ViewedFolder getDefaultFolder() throws MessagingException
Returns the store's default folder wrapped in a ViewedFolder
object.
- Implements:
- getDefaultFolder in interface ViewedStore
public String getProtocol()
Returns the protocol used by this store.
- Implements:
- getProtocol in interface ViewedStore
public String getHost()
Returns the host for this store. Returns null for a local store.
- Implements:
- getHost in interface ViewedStore
public String getUsername()
Returns the user name used to connect. May return null if
no user name was used.
- Implements:
- getUsername in interface ViewedStore
public int getPort()
Returns the port used to connect. Returns -1 for the protocol default.
- Implements:
- getPort in interface ViewedStore
public boolean isConnected()
Returns the connected state of this store
- Implements:
- isConnected in interface ViewedStore
public void addViewedStoreListener(ViewedStoreListener l)
Adds a ViewedStoreListener
- Implements:
- addViewedStoreListener in interface ViewedStore
public void removeViewedStoreListener(ViewedStoreListener l)
Removes a ViewedStoreListener
- Implements:
- removeViewedStoreListener in interface ViewedStore
void checkConnected() throws MessagingException
boolean isSorted()
public void setVisible(int aVisible)
Sets which children to show for this store
- Implements:
- setVisible in interface ViewedStore
public int getVisible()
Returns which children are showing for this store
- Implements:
- getVisible in interface ViewedStore
public String toString()
- Overrides:
- toString in class ViewedFolderBase
void addFolderUpdate(ViewedFolderBase aFolder)
void notifyFolderChanged(ViewedFolderBase aFolder)
void notifyFolderDeleted(ViewedFolderBase aFolder) throws MessagingException
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
|