javax.mail.event
public class FolderEvent extends MailEvent
Field Summary | |
---|---|
static int | CREATED |
static int | DELETED |
protected Folder | folder |
protected Folder | newFolder |
static int | RENAMED |
protected int | type |
Constructor Summary | |
---|---|
FolderEvent(Object source, Folder oldFolder, Folder newFolder, int type)
Constructor used for RENAMED events.
| |
FolderEvent(Object source, Folder folder, int type)
Constructor other events.
|
Method Summary | |
---|---|
void | dispatch(Object listener) |
Folder | getFolder()
Return the affected folder. |
Folder | getNewFolder()
Return the new folder; only applicable to RENAMED events. |
int | getType()
Return the event type. |
Parameters: source the source of the event oldFolder the folder that was renamed newFolder the folder with the new name type the event type
Parameters: source the source of the event folder the folder affected type the event type
Returns: the affected folder
Returns: the new folder
Returns: the event type