SHOW Signed

net.rim.blackberry.api.mail.event
Class MessageEvent

java.lang.Object
  |
  +--net.rim.blackberry.api.mail.event.MailEvent
        |
        +--net.rim.blackberry.api.mail.event.MessageEvent

public class MessageEvent
extends MailEvent

Indicates that a message has changed.

The system produces a message event when a message's header attributes (envelope) is updated, or when a message is opened, closed, created, forwarded or replied to in the device's Message application.

Note: It is not possible to intercept a message during transmission. Changes to the Message object indicated by this message event do not change data that has already been sent from the handheld. Changes are reflected in the message in the messages list, however, and the updated message can be retransmitted.

Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

Since:
JDE 3.6.0

Field Summary
 Category: Signed static int CLOSED
          Message was closed in the main message list UI.
 Category: Signed static int FORWARD
          Message is forwarded.
 Category: Signed static int NEW
          The compose screen is opened to create a new message.
 Category: Signed static int OPENED
          Message was opened in the main message list UI.
 Category: Signed static int REPLY
          Reply to a message.
 Category: Signed static int UPDATED
          Message header attributes (envelope) changed, but not the message body.
   
Constructor Summary
 Category: Signed MessageEvent(int type, Message msg)
          Creates a new MessageEvent instance.
 
Method Summary
 Category: Signed  void dispatch(Object listener)
          Dispatches this event to provided listener.
 Category: Signed  Message getMessage()
          Returns the changed message.
 Category: Signed  int getMessageChangeType()
          Retrieves this event's type.
 Category: Signed  String toString()
          Converts this event into a string.
 
Methods inherited from class net.rim.blackberry.api.mail.event.MailEvent
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLOSED

public static final int CLOSED
Message was closed in the main message list UI.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

FORWARD

public static final int FORWARD
Message is forwarded.
Since:
JDE 4.1.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

NEW

public static final int NEW
The compose screen is opened to create a new message.
Since:
JDE 4.1.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

OPENED

public static final int OPENED
Message was opened in the main message list UI.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

REPLY

public static final int REPLY
Reply to a message.
Since:
JDE 4.1.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

UPDATED

public static final int UPDATED
Message header attributes (envelope) changed, but not the message body.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Constructor Detail

MessageEvent

public MessageEvent(int type,
                    Message msg)
Creates a new MessageEvent instance.
Parameters:
type - Type of this event: UPDATED, OPENED, CLOSED, NEW, FORWARD, or REPLY.
msg - Message associated with the event.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Method Detail

dispatch

public void dispatch(Object listener)
Dispatches this event to provided listener.
Overrides:
dispatch in class MailEvent
Parameters:
listener - Listener to handle this event.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getMessage

public Message getMessage()
Returns the changed message.
Returns:
Message that was changed by this event.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getMessageChangeType

public int getMessageChangeType()
Retrieves this event's type.
Returns:
Type of message event: UPDATED, OPENED, CLOSED, NEW, FORWARD, or REPLY.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

toString

public String toString()
Converts this event into a string.
Overrides:
toString in class MailEvent
Returns:
String form for this event.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.


Copyright 1999-2007 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.