|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject
public class EventObject
Represents Events fired by Objects.
EventListener
,
Serialized FormField Summary | |
---|---|
protected Object |
source
The source object; in other words, the object which this event takes place on. |
Constructor Summary | |
---|---|
EventObject(Object source)
Constructs an EventObject with the specified source. |
Method Summary | |
---|---|
Object |
getSource()
Returns the source of the event. |
String |
toString()
Converts the event to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient Object source
Constructor Detail |
---|
public EventObject(Object source)
source
- the source of the event
IllegalArgumentException
- if source is null (This is not
specified, but matches the behavior of the JDK)Method Detail |
---|
public Object getSource()
public String toString()
getClass().getName() + "[source=" + source + "]";
.
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |