public class java.util
EventObject


Hide details Login
Java SE 6
  
Implements: Serializable
Extended by: AWTEvent, BeanContextEvent, CaretEvent, ChangeEvent, ConnectionEvent, DragGestureEvent, DragSourceEvent, DropTargetEvent, FlavorEvent, HyperlinkEvent, LineEvent, ListDataEvent, ListSelectionEvent, MenuEvent, NamingEvent, NamingExceptionEvent, NodeChangeEvent, Notification, PopupMenuEvent, PreferenceChangeEvent, PrintEvent, PropertyChangeEvent, RowSetEvent, RowSorterEvent, StatementEvent, TableColumnModelEvent, TableModelEvent, TreeExpansionEvent, TreeModelEvent, TreeSelectionEvent, UndoableEditEvent, UnsolicitedNotificationEvent

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.
sinceJDK1.1


Fields
protected Object source
The object on which the Event initially occurred.

Constructors
public EventObject(Object source)
Constructs a prototypical Event.
sourceThe object on which the Event initially occurred.
ThrowsIllegalArgumentException: if source is null.

Methods
public String toString()
Returns a String representation of this EventObject.
returnA a String representation of this EventObject.

Properties
public Object getSource()
The object on which the Event initially occurred.
returnThe object on which the Event initially occurred.