How to add a checkbox to a Vaadin 7 table?

I’m new to Vaadin, and using Vaadin 7.0.
I’m trying to implement a table with selection checkboxes, which I’ve managed to do.
I’ve tried to find a way to add a ‘select all’ checkbox to the table title, but couldn’t find a good example of how to do that.
I understand that this was an issue with previous versions: is that an option with 7.0?