|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Folder listener that is notified when an application message or bulk of messages are operated in the folder. Message List component provides generic operations such as messages deletion, marking it opened and others.
If the callback notification results in updating more than one message then
the application should call ApplicationMessageFolder.fireReset()
instead of individual
ApplicationMessageFolder#fireElementAdded(Object) calls for better
performance.
| Field Summary | ||
|
static int |
MESSAGE_DELETED
Performed when user manually deletes messages from the list by pressing DEL button or through context menu. |
|
static int |
MESSAGE_MARKED_OPENED
Performed when user manually marks selected messages or messages prior to selected date as opened |
|
static int |
MESSAGE_MARKED_UNOPENED
Performed when user manually marks selected messages as unopened |
| Method Summary | ||
|
void |
actionPerformed(int action,
ApplicationMessage[] messages,
ApplicationMessageFolder folder)
This method is called when action is performed on given folder. |
| Field Detail |
public static final int MESSAGE_DELETED
ApplicationMessageFolder.fireElementRemoved(ApplicationMessage)
method.public static final int MESSAGE_MARKED_OPENED
public static final int MESSAGE_MARKED_UNOPENED
| Method Detail |
public void actionPerformed(int action,
ApplicationMessage[] messages,
ApplicationMessageFolder folder)
ApplicationMessageFolder.fireReset() instead of individual
ApplicationMessageFolder.fireElementUpdated(ApplicationMessage, ApplicationMessage)
methods after updating the messages.
If a message was deleted by user and folder listener was called back with
MESSAGE_DELETED action then there is no need to fire
notifications on folder through one of the fireXXX() methods.
action - action code specified by one of the constants from this
interfacemessages - an underlying message or array of messages for a bulk
operationfolder - folder that contains the message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2008 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.