How handle button Single and Double click event?

Hi,
I need to handle single and double click event for button. But how I can handle this job for Vaadin Button.

Thanks
Bishwajit Barua

There is no isDoubleClick() for Button.ClickEvent so you need to do this your self. I would check in the click listener if the the previous click happened within certain time interval that is short enough to be judged as double click.