EventMouseClicked
Posted: Thu May 02, 2019 11:11 am
Hi,
I'm trying to add a listener for a mouseclick event to labelcontrol
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?
I'm trying to add a listener for a mouseclick event to labelcontrol
- Code: Select all
labelControlEmail.setDataRow(rdbContContact);
labelControlEmail.setColumnName("CONT_EMAIL");
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?