javax.mail.event
public class FolderEvent extends MailEvent
Version: 1.3
| Field Summary | |
|---|---|
| static int | CREATED
The folder was created. |
| static int | DELETED
The folder was deleted. |
| protected Folder | folder
The folder the event occurred on. |
| protected Folder | newFolder
The folder representing the new name, in the case of a RENAMED event. |
| static int | RENAMED
The folder was renamed. |
| protected int | type
The event type. |
| Constructor Summary | |
|---|---|
| FolderEvent(Object source, Folder folder, int type)
Constructor. | |
| FolderEvent(Object source, Folder oldFolder, Folder newFolder, int type)
Constructor for RENAMED events. | |
| Method Summary | |
|---|---|
| void | dispatch(Object listener)
Invokes the appropriate listener method. |
| Folder | getFolder()
Returns the affected folder. |
| Folder | getNewFolder()
Returns the folder representing the new name, in the case of a RENAMED
event. |
| int | getType()
Returns the type of this event. |
Parameters: source the source folder the affected folder type the event type (CREATED or DELETED)
Parameters: source the source oldFolder the folder that is renamed newFolder the folder that represents the new name type the event type (RENAMED)
See Also: FolderEvent
See Also: FolderEvent