public class EventObject extends java.lang.Object implements java.io.Serializable
EventListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
source
The source object; in other words, the object which this event takes
place on.
|
| Constructor and Description |
|---|
EventObject(java.lang.Object source)
Constructs an EventObject with the specified source.
|
protected transient java.lang.Object source
public EventObject(java.lang.Object source)
source - the source of the eventjava.lang.IllegalArgumentException - if source is null (This is not
specified, but matches the behavior of the JDK)public java.lang.Object getSource()
public java.lang.String toString()
getClass().getName() + "[source=" + source + "]";.toString in class java.lang.ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)