Class EventCatcherRecord
- java.lang.Object
-
- com.gargoylesoftware.base.testing.EventCatcherRecord
-
public class EventCatcherRecord extends java.lang.ObjectInformation about a single event that was caught by anEventCatcher- Version:
- $Revision: 1.3 $
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcallingThread_private java.util.EventObjectevent_private java.lang.reflect.Methodmethod_
-
Constructor Summary
Constructors Constructor Description EventCatcherRecord(java.lang.reflect.Method method, java.util.EventObject event)Create a new Record
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.EventObjectgetEvent()Return the event that had been caught.java.lang.reflect.MethodgetMethod()Return the method that had been invoked with the specified event.java.lang.StringgetThreadName()Return the name of the thread that the event was called on.
-
-
-
Method Detail
-
getMethod
public java.lang.reflect.Method getMethod()
Return the method that had been invoked with the specified event. For example, if we had caught a WindowEvent then the method might be windowClosing()- Returns:
- The method
-
getEvent
public java.util.EventObject getEvent()
Return the event that had been caught. For example, a WindowEvent- Returns:
- The event.
-
getThreadName
public java.lang.String getThreadName()
Return the name of the thread that the event was called on. For AWT events, this will typically be the event dispatch (UI) thread.- Returns:
- The thread name.
-
-