Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Listener like "lost focus"
Based on: Reindeer theme
I have my own form (GridLayout) with a Grid. I want to be able to select a row and when I click out of the grid the selected row should deselect (lost focus efect). I almost achieve this with a small problem.
When I click in the grid, addSelectionListener occurs and does select the row. But, as LayoutClickListener also occurs I have to catch this, because I want to deselect the row and desable one of the buttons. Besides, occurs before addSelectionListener.
At this point, with some "ifs" I can select the row, and deselect it by clicking twice outside the grid and that's what is bothering me. It is not "user frendly". There must be another way.
Also, I want to know how to show "boolean" column with checkbox.
I'm still waiting for some help.
Hi Aleksander, in the soon-to-be-released Vaadin 7.6 you can add a BlurListener to Grid to easily achieve this.
Ok, I will wait for Vaadin 7.6.
Thanks for the answer.