Page 1 of 1


PostPosted: Thu May 02, 2019 11:11 am
by lucdep

I'm trying to add a listener for a mouseclick event to labelcontrol

Code: Select all
      labelControlEmail.setMinimumSize(new UIDimension(200, 20));
      labelControlEmail.setFont(new UIFont("Tahoma", UIFont.PLAIN, 11));
      labelControlEmail.eventMouseClicked().addListener(this, "doOpenEmail");
public void doOpenEmail() throws Throwable
      getApplication().getLauncher().showDocument("mailto://" + Text.val(new Var(rdbContContact, "CONT_EMAIL")), null, "_blank");

In the JavaFX environment this works fine, but in Vaadin the mouseclick apparently has no effect. Is the listener not implemented in the Vaadin environment?

Re: EventMouseClicked

PostPosted: Thu May 02, 2019 1:27 pm
by Development@SIB
The support for mouse listener is already implemented: Label doesn't support mouse listener (click, ...)