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

java.lang.Object
  extended byjava.util.EventObject
      extended bySK.gnome.dwarf.mail.store.event.MailEvent
          extended bySK.gnome.dwarf.mail.store.event.FolderEvent
All Implemented Interfaces:
java.io.Serializable

public class FolderEvent
extends MailEvent

The mail folder event.

This event is generated whenever a specified operation if performed on the source MailFolder object.

See Also:
Serialized Form

Field Summary
static int CLOSED
          This event type specifies that the source folder has been closed.
static int CREATED
          This event type specifies that the source folder has been created.
static int DELETED
          This event type specifies that the source folder has been deleted.
static int OPENED
          This event type specifies that the source folder has been opened.
static int RENAMED
          This event type specifies that the source folder has been renamed.
 
Fields inherited from class SK.gnome.dwarf.mail.store.event.MailEvent
type, user
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FolderEvent(MailFolder source, java.lang.String user, int type)
          Creates a new FolderEvent.
FolderEvent(MailFolder source, java.lang.String user, int type, java.lang.String originalName)
          Creates a new FolderEvent.
 
Method Summary
 java.lang.String getOriginalName()
          Returns the original name of the folder.
 
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

CREATED

public static final int CREATED
This event type specifies that the source folder has been created.

See Also:
Constant Field Values

RENAMED

public static final int RENAMED
This event type specifies that the source folder has been renamed.

See Also:
Constant Field Values

DELETED

public static final int DELETED
This event type specifies that the source folder has been deleted.

See Also:
Constant Field Values

OPENED

public static final int OPENED
This event type specifies that the source folder has been opened.

See Also:
Constant Field Values

CLOSED

public static final int CLOSED
This event type specifies that the source folder has been closed.

See Also:
Constant Field Values
Constructor Detail

FolderEvent

public FolderEvent(MailFolder source,
                   java.lang.String user,
                   int type)
Creates a new FolderEvent.

Parameters:
source - the source folder
user - the user producing this event
type - the event type

FolderEvent

public FolderEvent(MailFolder source,
                   java.lang.String user,
                   int type,
                   java.lang.String originalName)
Creates a new FolderEvent.

The originalName argument specifies the source folder's original name if it has been renamed.

Parameters:
source - the source folder
user - the user producing the event
type - the event type
originalName - the original name of the folder
Method Detail

getOriginalName

public java.lang.String getOriginalName()
Returns the original name of the folder.

Returns:
the original folder name


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