|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.blackberry.api.mail.event.MailEvent
|
+--net.rim.blackberry.api.mail.event.FolderEvent
Indicates that a message in a folder was added or removed.
Note: It is not possible to intercept a message
during transmission. Removal of a Message does not affect
data that has already been sent from the handheld.
| Field Summary | ||
|
static int |
MESSAGE_ADDED
Messages were added to the folder. |
|
static int |
MESSAGE_REMOVED
Messages were removed from the folder. |
| Fields inherited from class net.rim.blackberry.api.mail.event.MailEvent |
_source |
| Constructor Summary | ||
|
FolderEvent(Folder folder,
int type,
Message m)
Constructor. |
|
| Method Summary | ||
|
void |
dispatch(Object listener)
Invokes the appropriate method on a listener for this event. |
|
Message |
getMessage()
Retrieves the message that was added or removed. |
|
int |
getType()
Returns the type of this event. |
| Methods inherited from class net.rim.blackberry.api.mail.event.MailEvent |
getSource, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int MESSAGE_ADDED
Messages were added to the folder.
public static final int MESSAGE_REMOVED
Messages were removed from the folder.
| Constructor Detail |
public FolderEvent(Folder folder, int type, Message m)
folder - Folder that is affected by the event.type - Type of event, either MESSAGE_ADDED or MESSAGE_REMOVED.m - Message that was added or removed.| Method Detail |
public void dispatch(Object listener)
MailEventInvokes the appropriate method on a listener for this event.
Subclasses provide the implementation.
public Message getMessage()
Message object.public int getType()
MESSAGE_ADDED or MESSAGE_REMOVED.
|
|||||||||
| 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.