- All Implemented Interfaces:
- Direct Known Subclasses:
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.
- See Also:
- Serialized Form
Constructors Constructor Description
EventObject(Object source)Constructs a prototypical Event.
EventObjectpublic EventObject(Object source)Constructs a prototypical Event.
source- the object on which the Event initially occurred
IllegalArgumentException- if source is null
getSourcepublic Object getSource()The object on which the Event initially occurred.
- the object on which the Event initially occurred
toStringpublic String toString()Returns a String representation of this EventObject.