This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

EventMouseClicked

General questions regarding the development with JavaFX UI for JVx.

EventMouseClicked

Postby lucdep » Thu May 02, 2019 11:11 am

Hi,

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

Postby Development@SIB » Thu May 02, 2019 1:27 pm

The support for mouse listener is already implemented: Label doesn't support mouse listener (click, ...)
User avatar
Development@SIB
 
Posts: 325
Joined: Mon Sep 28, 2009 1:54 pm


Return to Development