SK.gnome.dwarf.mail.store.event
Class MessageCountEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bySK.gnome.dwarf.mail.store.event.MailEvent
          extended bySK.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 SK.gnome.dwarf.mail.store.event.MailEvent
type, user
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MessageCountEvent(MailFolder source, java.lang.String user, int type, MailMessage[] messages)
          Creates a new MessageCountEvent.
 
Method Summary
 MailMessage[] getMessages()
          Returns the added/removed messages.
 
Methods inherited from class SK.gnome.dwarf.mail.store.event.MailEvent
getSourceFolder, getType, getUser
 
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
 

Field Detail

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
Constructor Detail

MessageCountEvent

public MessageCountEvent(MailFolder source,
                         java.lang.String user,
                         int type,
                         MailMessage[] messages)
Creates a new MessageCountEvent.

Parameters:
source - the source folder
user - the user producing this event
type - the event type
messages - the added/removed messages
Method Detail

getMessages

public MailMessage[] getMessages()
Returns the added/removed messages.

Returns:
the messages


Copyright (c) 2004-2005, Gnome Ltd. All rights reserved.