Serializable
AppEvent
, AWTEvent
, BeanContextEvent
, CaretEvent
, ChangeEvent
, ConnectionEvent
, DragGestureEvent
, DragSourceEvent
, DropTargetEvent
, FlavorEvent
, HandshakeCompletedEvent
, HyperlinkEvent
, LineEvent
, ListDataEvent
, ListSelectionEvent
, MenuEvent
, NamingEvent
, NamingExceptionEvent
, NodeChangeEvent
, Notification
, PopupMenuEvent
, PreferenceChangeEvent
, PrintEvent
, PropertyChangeEvent
, RowSetEvent
, RowSorterEvent
, SSLSessionBindingEvent
, StatementEvent
, TableColumnModelEvent
, TableModelEvent
, TreeExpansionEvent
, TreeModelEvent
, TreeSelectionEvent
, UndoableEditEvent
, UnsolicitedNotificationEvent
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.
Modifier and Type | Field | Description |
---|---|---|
protected Object |
source |
The object on which the Event initially occurred.
|
Constructor | Description |
---|---|
EventObject(Object source) |
Constructs a prototypical Event.
|
Modifier and Type | Method | Description |
---|---|---|
Object |
getSource() |
The object on which the Event initially occurred.
|
String |
toString() |
Returns a String representation of this EventObject.
|
protected transient Object source
public EventObject(Object source)
source
- The object on which the Event initially occurred.IllegalArgumentException
- if source is null.public Object getSource()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps