title: buttonlistening - how to make it professional?
body: <p>I want to implement a GUI element that works like a button that reacts different on right/left clicks and dragging.
  Say this button is an object. Who is in charge to call the right method on mouseevents from the button and how is it designed in usual programming languages like e.g. AWT in Java?</p>