- 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.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getSource()The object on which the Event initially occurred.
toString()Returns a String representation of this EventObject.
protected transient Object sourceThe object on which the Event initially occurred.
public EventObject(Object source)Constructs a prototypical Event.
source- the object on which the Event initially occurred
IllegalArgumentException- if source is null
public Object getSource()The object on which the Event initially occurred.
- the object on which the Event initially occurred