Best practice for handling events for multiple gui components
What is the best practice way to handle events, when multiple event sources (e.g. multiple buttons) are present in a gui? Should separate listeners be created or only one with a switch defining the source of the event? Or something else?