java.util
Class EventObject
java.lang.Object
|
+--java.util.EventObject
All Implemented Interfaces:
Serializable
Represents Events fired by Objects.
Since:Author:- Eric Blake <ebb9@email.byu.edu>
See Also:
source
protected transient Object source
The source object; in other words, the object which this event takes
place on.
EventObject
public EventObject(java.lang.Object source)
Constructs an EventObject with the specified source.
Parameters:
Throws:
getSource
public Object getSource()
Returns the source of the event.
Returns:
toString
public String toString()
Converts the event to a String. The format is not specified, but by
observation, the JDK uses:
getClass().getName() + "[source=" + source + "]";
.
Returns:
- String representation of the Event