javax.mail.event
Class FolderEvent
java.lang.Object
java.util.EventObject
javax.mail.event.MailEvent
javax.mail.event.FolderEvent
- All Implemented Interfaces:
- Serializable
public class FolderEvent
- extends MailEvent
- Version:
- $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
- See Also:
- Serialized Form
CREATED
public static final int CREATED
- See Also:
- Constant Field Values
DELETED
public static final int DELETED
- See Also:
- Constant Field Values
RENAMED
public static final int RENAMED
- See Also:
- Constant Field Values
folder
protected transient Folder folder
newFolder
protected transient Folder newFolder
type
protected int type
FolderEvent
public FolderEvent(Object source,
Folder oldFolder,
Folder newFolder,
int type)
- Constructor used for RENAMED events.
- Parameters:
source
- the source of the eventoldFolder
- the folder that was renamednewFolder
- the folder with the new nametype
- the event type
FolderEvent
public FolderEvent(Object source,
Folder folder,
int type)
- Constructor other events.
- Parameters:
source
- the source of the eventfolder
- the folder affectedtype
- the event type
dispatch
public void dispatch(Object listener)
- Specified by:
dispatch
in class MailEvent
getFolder
public Folder getFolder()
- Return the affected folder.
- Returns:
- the affected folder
getNewFolder
public Folder getNewFolder()
- Return the new folder; only applicable to RENAMED events.
- Returns:
- the new folder
getType
public int getType()
- Return the event type.
- Returns:
- the event type
Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.