|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--javax.mail.event.MailEvent
|
+--javax.mail.event.FolderEvent
This class models Folder "existence" events. FolderEvents are delivered to FolderListeners, registered on the affected Folder as well as the containing Store.
| 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 that represents the new name, in case of a RENAMED event. |
static int |
RENAMED
The folder was renamed. |
protected int |
type
The event type. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
FolderEvent(java.lang.Object source,
Folder oldFolder,
Folder newFolder,
int type)
Constructor. |
|
FolderEvent(java.lang.Object source,
Folder folder,
int type)
Constructor. |
|
| Method Summary | |
void |
dispatch(java.lang.Object listener)
Invokes the appropriate FolderListener method |
Folder |
getFolder()
Return the affected folder. |
Folder |
getNewFolder()
If this event indicates that a folder is renamed, (i.e, the event type is RENAMED), then this method returns the Folder object representing the new name. |
int |
getType()
Return the type of this event. |
| Methods inherited from class java.util.EventObject |
getSource,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
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
| Constructor Detail |
public FolderEvent(java.lang.Object source,
Folder folder,
int type)
source - The source of the eventfolder - The affected foldertype - The event type
public FolderEvent(java.lang.Object source,
Folder oldFolder,
Folder newFolder,
int type)
source - The source of the eventoldFolder - The folder that is renamednewFolder - The folder that represents the new nametype - The event type| Method Detail |
public int getType()
public Folder getFolder()
getNewFolder()public Folder getNewFolder()
The getFolder() method returns the folder that is renamed.
getFolder()public void dispatch(java.lang.Object listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||