public class FolderEvent extends MailEvent
Modifier and Type | Field and Description |
---|---|
static int |
CREATED |
static int |
DELETED |
protected Folder |
folder |
protected Folder |
newFolder |
static int |
RENAMED |
protected int |
type |
Constructor and Description |
---|
FolderEvent(java.lang.Object source,
Folder oldFolder,
Folder newFolder,
int type)
Constructor used for RENAMED events.
|
FolderEvent(java.lang.Object source,
Folder folder,
int type)
Constructor other events.
|
public static final int CREATED
public static final int DELETED
public static final int RENAMED
protected transient Folder folder
protected transient Folder newFolder
protected int type
public FolderEvent(java.lang.Object source, Folder oldFolder, Folder newFolder, int type)
source
- the source of the eventoldFolder
- the folder that was renamednewFolder
- the folder with the new nametype
- the event typepublic FolderEvent(java.lang.Object source, Folder folder, int type)
source
- the source of the eventfolder
- the folder affectedtype
- the event typepublic Folder getFolder()
public Folder getNewFolder()
public int getType()