One registered event listener. This class contains the listener object
reference, listened event type, the trigger method to call when the event
fires, and the optional argument list to pass to the method and the index
of the argument to replace with the event object.
This Class provides several constructors that allow omission of the
optional arguments, and giving the listener method directly, or having
the constructor to reflect it using merely the name of the method.
|
|
|
|
|
__init__(self,
eventType,
target,
method,
arguments=None,
eventArgumentIndex=None)
Constructs a new event listener from a trigger method, it's arguments
and the argument index specifying which one is replaced with the
event object when the trigger method is called. |
source code
|
|
|
receiveEvent(self,
event)
Receives one event from the EventRouter and calls the
trigger method if it matches with the criteria defined for the
listener. |
source code
|
|
|
matches(self,
eventType,
target,
method=None)
Checks if the given object and event match with the ones stored in
this listener. |
source code
|
|
|
|
|
|
|
isType(self,
eventType)
Compares the type of this ListenerMethod to the given type |
source code
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|