Save This Page
Home » apache-tomcat-6.0.16-src » javax » mail » event » [javadoc | source]
javax.mail.event
public class: FolderEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      javax.mail.event.MailEvent
         javax.mail.event.FolderEvent

All Implemented Interfaces:
    Serializable

Field Summary
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     
Constructor:
 public FolderEvent(Object source,
    Folder folder,
    int type) 
    Constructor other events.
    Parameters:
    source - the source of the event
    folder - the folder affected
    type - the event type
 public FolderEvent(Object source,
    Folder oldFolder,
    Folder newFolder,
    int type) 
    Constructor used for RENAMED events.
    Parameters:
    source - the source of the event
    oldFolder - the folder that was renamed
    newFolder - the folder with the new name
    type - the event type
Method from javax.mail.event.FolderEvent Summary:
dispatch,   getFolder,   getNewFolder,   getType
Methods from javax.mail.event.MailEvent:
dispatch
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.event.FolderEvent Detail:
 public  void dispatch(Object listener) 
 public Folder getFolder() 
    Return the affected folder.
 public Folder getNewFolder() 
    Return the new folder; only applicable to RENAMED events.
 public int getType() 
    Return the event type.