|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.blackberry.api.mail.Service
|
+--net.rim.blackberry.api.mail.Store
Represents a message store and its access protocol, for storing
and retrieving messages on the handheld.
You retrieve a Store instance by invoking Session.getStore().
Folder| Method Summary | ||
|
void |
addFolderListener(FolderListener l)
Adds a folder listener to this store. |
|
void |
addStoreListener(StoreListener l)
Adds a store listener to this store. |
|
Folder[] |
findFolder(String substring)
Retrieves folders in this hierarchy that match the specified substring. |
|
Folder |
getFolder(long folderId)
Retrieves a Folder object by folder ID. |
|
Folder |
getFolder(String name)
Retrieves the Folder object corresponding to the given name. |
|
Folder[] |
list()
Retrieves a list of folders directly under this Store. |
|
Folder[] |
list(int type)
Retrieves the set of Folder objects that match the specified type. |
|
void |
removeFolderListener(FolderListener l)
Removes a folder listener from the root level. |
|
void |
removeStoreListener(StoreListener l)
Removes a store listener from this store. |
| Methods inherited from class net.rim.blackberry.api.mail.Service |
getServiceConfiguration, isConnected, setConnected, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public Folder[] list(int type)
Retrieves the set of Folder objects that match the specified type.
type - The type of folder for which to search.public Folder getFolder(long folderId) throws FolderNotFoundException
Retrieves a Folder object by folder ID.
folderId - ID of the folder to get.Folder object.FolderNotFoundException - when a folder with the specified name is not foundpublic Folder getFolder(String name) throws FolderNotFoundException
Retrieves the Folder object corresponding to the given name.
This API does not support the following characters appearing in folder names:
name - Name of the folder to get. The name must be an absolute
path, starting with the hierarchy delimiter, but not ending with the delimiter.
For example, "/abc/efg" is correct, where abc
is a direct subfolder of this Store.Folder object.FolderNotFoundException - Thrown when a folder with the specified name
is not found.public Folder[] findFolder(String substring)
substring - The simple substring to match.public Folder[] list()
Retrieves a list of folders directly under this Store.
Folder objects or an empty array if no folders are present.public void addFolderListener(FolderListener l)
l - The FolderListener to add to this Store.public void removeFolderListener(FolderListener l)
l - The FolderListener to remove from this Store.public void addStoreListener(StoreListener l)
l - StoreListener to add to this Store.public void removeStoreListener(StoreListener l)
l - StoreListener to remove from this Store.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.