Module ui.widget.eventlistener
The EventListener is an interface that handles events.
This is the base class for Widget
EventListeners have a rudimentary event handler/dispatcher that will call a method "onEventName" for an event with name "EventName"
Functions
EventListener:handleEvent (event) | Invoke handler method for an event. |
Functions
- EventListener:handleEvent (event)
-
Invoke handler method for an event.
Handler method name is determined by ui.event.Event's handler field. By default, it's
"on"..Event.name
.Parameters:
- event ui.event.Event
Returns:
-
bool
return true if event is consumed successfully.