This one is only valid for Mouse events: MouseUpEvent, MouseDownEvent. It filters the mouse button.
@ViewHandler @MouseButton({MouseButtons.RIGHT}) public void login$mouseDown(String username$value, String password$value) { tryLogin(username$value, password$value); }