Class java.util.EventObject
java.lang.Object
|
+--java.util.EventObject
- public class EventObject
- extends java.lang.Object
- implements java.io.Serializable
The Event class is the abstract root class from which all event state
objects shall be derived.
All Event's 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
Field Summary
|
java.lang.Object
|
source
|
Constructor Summary
|
EventObject(java.lang.Object source)
Constructs a prototypical Event |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
source
protected transient java.lang.Object source
EventObject
public EventObject(java.lang.Object source)
- Constructs a prototypical Event
- Parameters:
source
- The object that the Event occurred upon.
getSource
public java.lang.Object getSource()
- Returns:
- The object that the Event initially occurred upon.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object