I found a simple walkaround for the ones in need. Just make one huge listener with a conditional/switch statement (each branch of the if statement would contain a different action listener code), and activate each part of the listener by activating the representing if statement.
THIS is not efficient in all the situations though, so if there is any better way, please post it