Name
FolderEvent
Synopsis
The FolderEvent
class defines events related to a folder’s
lifecycle. The getFolder()
method returns a
Folder
object representing the folder that the event
occurred on, and the getNewFolder()
will return the new
Folder
object representing the results of a folder rename.
public class FolderEvent extends MailEvent { // Public Constructors public FolderEvent(Object source, Folder folder, int type); public FolderEvent(Object source, Folder oldFolder, Folder newFolder, int type); // Public Constants public static final int CREATED; // =1 public static final int DELETED; // =2 public static final int RENAMED; // =3 // Public Instance Methods public Folder getFolder(); public Folder getNewFolder(); public int getType(); // Public Methods Overriding MailEvent public void dispatch( Object listener); // Protected Instance Fields protected transient Folder folder; protected transient Folder newFolder; protected int type; }
Passed To
FolderAdapter.{folderCreated()
, folderDeleted()
, folderRenamed()}
, FolderListener.{folderCreated()
, folderDeleted()
, folderRenamed()}
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.