public class EventObject
extends java.lang.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 java.lang.Object |
source
The object on which the Event initially occurred.
|
| Constructor and Description |
|---|
EventObject(java.lang.Object source)
Constructs a prototypical Event.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getSource()
The object on which the Event initially occurred.
|
java.lang.String |
toString()
Returns a String representation of this EventObject.
|
protected transient java.lang.Object source
public EventObject(java.lang.Object source)
source - The object on which the Event initially occurred.java.lang.IllegalArgumentException - if source is null.public java.lang.Object getSource()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2022. All rights reserved.