public class EventObject extends Object implements 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.
Constructor and Description |
---|
EventObject(Object source)
Constructs a prototypical Event.
|
Modifier and Type | Method and Description |
---|---|
Object |
getSource()
The object on which the Event initially occurred.
|
String |
toString()
Returns a String representation of this EventObject.
|
public EventObject(Object source)
source
- The object on which the Event initially occurred.IllegalArgumentException
- if source is null.public Object getSource()