| java.lang.Object | |||
| ↳ | java.util.EventObject | ||
| ↳ | com.google.code.javax.mail.event.MailEvent | ||
| ↳ | com.google.code.javax.mail.event.FolderEvent | ||
This class models GmailFolder existence events. FolderEvents are delivered to FolderListeners registered on the affected GmailFolder as well as the containing Store.
Service providers vary widely in their ability to notify clients of these events. At a minimum, service providers must notify listeners registered on the same Store or GmailFolder object on which the operation occurs. Service providers may also notify listeners when changes are made through operations on other objects in the same virtual machine, or by other clients in the same or other hosts. Such notifications are not required and are typically not supported by mail protocols (including IMAP).
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | CREATED | The folder was created. | |||||||||
| int | DELETED | The folder was deleted. | |||||||||
| int | RENAMED | The folder was renamed. | |||||||||
| long | serialVersionUID | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.code.javax.mail.event.MailEvent
| |||||||||||
From class
java.util.EventObject
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| folder | The folder the event occurred on. | ||||||||||
| newFolder | The folder that represents the new name, in case of a RENAMED event. | ||||||||||
| type | The event type. | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.EventObject
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
| |||||||||||
Constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Invokes the appropriate FolderListener method
| |||||||||||
Return the affected folder.
| |||||||||||
If this event indicates that a folder is renamed, (i.e, the event type
is RENAMED), then this method returns the GmailFolder object representing the
new name.
| |||||||||||
Return the type of this event.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.code.javax.mail.event.MailEvent
| |||||||||||
From class
java.util.EventObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
The folder was created.
The folder was deleted.
The folder was renamed.
The event type.
Constructor.
| source | The source of the event |
|---|---|
| folder | The affected folder |
| type | The event type |
Constructor. Use for RENAMED events.
| source | The source of the event |
|---|---|
| oldFolder | The folder that is renamed |
| newFolder | The folder that represents the new name |
| type | The event type |
Invokes the appropriate FolderListener method
| listener |
|---|
If this event indicates that a folder is renamed, (i.e, the event type is RENAMED), then this method returns the GmailFolder object representing the new name.
The getFolder() method returns the folder that is renamed.
Return the type of this event.