public class EventObject extends Object
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 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.
|
protected transient Object source
public EventObject(Object source)
source
- The object on which the Event initially occurred.IllegalArgumentException
- if source is null.public Object getSource()
Copyright © 2024. All rights reserved.