public class EventObject extends Object implements Serializable
EventListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Object |
source
The source object; in other words, the object which this event takes
place on.
|
Constructor and Description |
---|
EventObject(Object source)
Constructs an EventObject with the specified source.
|
Modifier and Type | Method and Description |
---|---|
Object |
getSource()
Returns the source of the event.
|
String |
toString()
Converts the event to a String.
|
protected transient Object source
public EventObject(Object source)
source
- the source of the eventIllegalArgumentException
- if source is null (This is not
specified, but matches the behavior of the JDK)public Object getSource()