Class EventCatcherRecord
java.lang.Object
com.gargoylesoftware.base.testing.EventCatcherRecord
Information about a single event that was caught by an
EventCatcher
- Version:
- $Revision: 1.3 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final EventObject
private final Method
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEvent()
Return the event that had been caught.Return the method that had been invoked with the specified event.Return the name of the thread that the event was called on.
-
Field Details
-
method_
-
event_
-
callingThread_
-
-
Constructor Details
-
EventCatcherRecord
Create a new Record- Parameters:
method
- The method that caught the event.event
- The event that was caught.
-
-
Method Details
-
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
Return the event that had been caught. For example, a WindowEvent- Returns:
- The event.
-
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.
-