Check box in Header???

Hi I couldnt Use Check box in Vaadin table Header , is there any options to select all items in the table???
Cann any one help me from this…??

I was quite close to do that by using this way

https://vaadin.com/forum#!/thread/4440019

one missing call from browser to server block this one.

As a workaround right now I just move normal check box over table component by using CSS and that way it looks like check box is part of table component.

Currently iam using a radio button to checkall and Uncheckall , in that listner iam iterating all my container data and setting all the records checked but my performance will loose for lakhs of records is there any way for this… Help me …