Creates a [xy]Listener and a [xy]Event class
