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 |
source
Constructor and Description |
---|
FolderEvent(Object source,
Folder oldFolder,
Folder newFolder,
int type)
Constructor used for RENAMED events.
|
FolderEvent(Object source,
Folder folder,
int type)
Constructor other events.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getSource, toString
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(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 Folder getFolder()
public Folder getNewFolder()
public int getType()
Copyright © 2013. All Rights Reserved.