Class MessageChangedEvent

All Implemented Interfaces:
Serializable

public class MessageChangedEvent extends MailEvent
This class models Message change events.
Author:
John Mani
See Also:
  • Field Details Link icon

    • FLAGS_CHANGED Link icon

      public static final int FLAGS_CHANGED
      The message's flags changed.
      See Also:
    • ENVELOPE_CHANGED Link icon

      public static final int ENVELOPE_CHANGED
      The message's envelope (headers, but not body) changed.
      See Also:
    • type Link icon

      protected int type
      The event type.
    • msg Link icon

      protected transient Message msg
      The message that changed.
  • Constructor Details Link icon

    • MessageChangedEvent Link icon

      public MessageChangedEvent(Object source, int type, Message msg)
      Constructor.
      Parameters:
      source - The folder that owns the message
      type - The change type
      msg - The changed message
  • Method Details Link icon

    • getMessageChangeType Link icon

      public int getMessageChangeType()
      Return the type of this event.
      Returns:
      type
    • getMessage Link icon

      public Message getMessage()
      Return the changed Message.
      Returns:
      the message
    • dispatch Link icon

      public void dispatch(Object listener)
      Invokes the appropriate MessageChangedListener method.
      Specified by:
      dispatch in class MailEvent
      Parameters:
      listener - the listener to invoke on