javax.mail.event
Class FolderEvent
CREATED
public static final int CREATED
DELETED
public static final int DELETED
RENAMED
public static final int RENAMED
newFolder
protected Folder newFolder
FolderEvent
public FolderEvent(Object source,
Folder folder,
int type)
Constructor other events.
source
- the source of the eventfolder
- the folder affectedtype
- the event type
FolderEvent
public FolderEvent(Object source,
Folder oldFolder,
Folder newFolder,
int type)
Constructor used for RENAMED events.
source
- the source of the eventoldFolder
- the folder that was renamednewFolder
- the folder with the new nametype
- the event type
getFolder
public Folder getFolder()
Return the affected folder.
getNewFolder
public Folder getNewFolder()
Return the new folder; only applicable to RENAMED events.
getType
public int getType()
Return the event type.