vaadin7 - How to get clicked component of Layout in Vaadin? -


I have one and I was clicked by the user which image component that has 5 or components I I would like to know ? Here is my code

  myVerticalLayout.addLayoutClickListener (new Leautkliklist () {public void in Leautklik (Last Leautklikivent event) {System.out.println (event.getSource (). GetClass (). GetSimpleName ());}});   

But I always Instead of clicking on the user rather than the image component only vertical layout received. I do not know how to do this? Can anyone tell me some tips? Thank you.

Now get me an answer. I event.getClickedComponent () uses to get it, but if the user had clicked on the Layout spaces, this method tap < / Strong> will return.

Comments

Popular posts from this blog

php - how to change mysql_result($res, 0, "url"); to mysqli -

c# - Textbox not clickable but editable -

Matlab transpose a table vector -