Listener like "lost focus"

Vaadin: 7.5.1
Based on: Reindeer theme

Hi!

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.

Thanks!
Aleksander
22320.jpg
22321.jpg

Hi!

I’m still waiting for some help.

Thanks.

Aleksander

Hi Aleksander, in the soon-to-be-released Vaadin 7.6 you can add a BlurListener to Grid to easily achieve this.

Hi Johannes!

Ok, I will wait for Vaadin 7.6.
Thanks for the answer.

Aleksander