Close the vaadin notification on user click

Hi,

I want to create a notification that closes on user click, my application runs a cron job and display some records to user as notifications. When user click on the notification,it should close. Can I do it using Vaadin notification? if not how can I do that?

Thank you in advance

Udehika

Cheers

Window.Notification notification = new Window.Notification(Message);
notification.setDelayMsec(-1);
getWindow().showNotification(notification);