DebugEventListener Class
- public class DebugEventListener
extends Object
implements EventListener
Simple implementation of EventListener that listenss for all events
and simply prints the received events.
-
Hierarchy
-
Object
DebugEventListener
-
All Implemented Interfaces
-
EventListener
public boolean |
-
equals (Object theOther)
- Implementation of equals so multiple debuggers won't
be added to the same handler.
|
public String [] |
-
getTypes ()
- Return the types we listen for (all of them).
|
public void |
-
handleEvent (Event theEvent)
- Print the Event using its toString to System.err
|
DebugEventListener
public DebugEventListener()
equals(Object) Method
public boolean equals(Object
theOther)
Implementation of equals so multiple debuggers won't
be added to the same handler.
All listeners of the same class are considered equal.
-
Overrides
-
Object.equals(Object)
getTypes() Method
public String
[] getTypes()
Return the types we listen for (all of them).
Override this to make a debugger that listens on other types.
Returns
- String[1] containing EventConstants.TYPE_ALL
handleEvent(Event) Method
public void handleEvent(Event
theEvent)
Print the Event using its toString to System.err
Parameters
-
theEvent
- The event that happened