|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.blackberry.api.mail.event.MailEvent
Base class for mail events.
MailEvent defines an abstract dispatch(java.lang.Object) method
to invoke the appropriate listener method for each event.
| Field Summary | ||
|
protected Object |
_source
Event publisher. |
| Constructor Summary | ||
|
MailEvent(Object source)
Constructor for a MailEvent. |
|
| Method Summary | ||
|
abstract void |
dispatch(Object listener)
Invokes the appropriate method on a listener for this event. |
|
Object |
getSource()
Returns the source of the MailEvent. |
|
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Object _source
| Constructor Detail |
public MailEvent(Object source)
MailEvent.| Method Detail |
public Object getSource()
MailEvent.public String toString()
ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
java.lang.Objectpublic abstract void dispatch(Object listener)
Invokes the appropriate method on a listener for this event.
Subclasses provide the implementation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.