EventMouseClicked
2 posts
• Page 1 of 1
EventMouseClicked
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?
- lucdep
- Posts: 53
- Joined: Wed Oct 10, 2018 12:01 pm
Re: EventMouseClicked
The support for mouse listener is already implemented: Label doesn't support mouse listener (click, ...)
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
2 posts
• Page 1 of 1