java.util
public class EventObject extends Object implements Serializable
Field Summary | |
---|---|
protected Object | source
The source object; in other words, the object which this event takes
place on. |
Constructor Summary | |
---|---|
EventObject(Object source)
Constructs an EventObject with the specified source.
|
Method Summary | |
---|---|
Object | getSource()
Returns the source of the event.
|
String | toString()
Converts the event to a String. |
Parameters: source the source of the event
Throws: IllegalArgumentException if source is null (This is not specified, but matches the behavior of the JDK)
Returns: the event source
getClass().getName() + "[source=" + source + "]";
.
Returns: String representation of the Event