public class FolderEvent extends MailEvent
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
FolderEvent(java.lang.Object source,
Folder oldFolder,
Folder newFolder,
int type)
Constructor for RENAMED events.
|
FolderEvent(java.lang.Object source,
Folder folder,
int type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(java.lang.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.
|
public static final int CREATED
public static final int DELETED
public static final int RENAMED
protected int type
protected transient Folder folder
protected transient Folder newFolder
public FolderEvent(java.lang.Object source, Folder folder, int type)
source
- the sourcefolder
- the affected foldertype
- the event type (CREATED or DELETED)public int getType()
public Folder getFolder()
getNewFolder()
public Folder getNewFolder()
getFolder()