public class EventObject extends Objectimplements Serializable
The root class from which all event state objects shall be derived.
All Events are constructed with a reference to the object, the "source", that is logically deemed to be the object upon which the Event in question initially occurred upon.
| Modifier and Type | Field and Description |
|---|---|
protected Object |
source
The object on which the Event initially occurred.
|
| Constructor and Description |
|---|
EventObject(Object
Constructs a prototypical Event.
|
protected transient Objectsource
public EventObject(Objectsource)
source - The object on which the Event initially occurred.
IllegalArgumentException - if source is null.
public ObjectgetSource()