SK.gnome.dwarf.mail.store.event
Class MessageCountEvent
java.lang.Object
java.util.EventObject
SK.gnome.dwarf.mail.store.event.MailEvent
SK.gnome.dwarf.mail.store.event.MessageCountEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class MessageCountEvent
- extends MailEvent
The message count event.
This event is generated whenever the total count of messages in the source MailFolder
object is changed.
- See Also:
- Serialized Form
Field Summary |
static int |
ADDED
This event type specifies that the messages has been added to the source folder. |
static int |
REMOVED
This event type specifies that the messages has been removed from the source folder. |
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ADDED
public static final int ADDED
- This event type specifies that the messages has been added to the source folder.
- See Also:
- Constant Field Values
REMOVED
public static final int REMOVED
- This event type specifies that the messages has been removed from the source folder.
- See Also:
- Constant Field Values
MessageCountEvent
public MessageCountEvent(MailFolder source,
java.lang.String user,
int type,
MailMessage[] messages)
- Creates a new MessageCountEvent.
- Parameters:
source
- the source folderuser
- the user producing this eventtype
- the event typemessages
- the added/removed messages
getMessages
public MailMessage[] getMessages()
- Returns the added/removed messages.
- Returns:
- the messages
Copyright (c) 2004-2005, Gnome Ltd. All rights reserved.