public class EventObject extends Object
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.
Constructor and Description |
---|
EventObject(Object source)
Constructs a prototypical Event.
|
public EventObject(Object source)
source
- The object on which the Event initially occurred.IllegalArgumentException
- if source is null.public Object getSource()
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.