Sets an event listener for current widget, keeping the actual type of component.
id of the handler
Example:
button.setEventListener { dblclick = { Alert.show("Button double clicked!") // self is of type Button here } }
widget type
event handler