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 |
|---|---|
| private static final long | |
| protected transient Object | source
The object on which the Event initially occurred. |
| Access | Constructor and Description |
|---|---|
| public | EventObject(Object
the object on which the Event initially occurred source)Constructs a prototypical Event. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the object on which the Event initially occurredThe object on which the Event initially occurred. |
| public String | Returns: a String representation of this EventObjectOverrides java. Returns a String representation of this EventObject. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| source | back to summary |
|---|---|
| protected transient Object source The object on which the Event initially occurred. | |
| EventObject | back to summary |
|---|---|
| public EventObject(Object source) Constructs a prototypical Event.
| |
| getSource | back to summary |
|---|---|
| public Object getSource() The object on which the Event initially occurred.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a String representation of this EventObject.
| |