Download without a button

Would like to trigger a download without using a button, actually I am using a menubar.
Dont think the deprecated Page.getCurrent().open() is the solution.

Thanks in advance.

You can use Page.getCurrent().open(java.lang.String url, java.lang.String windowName, boolean tryToOpenAsPopup)or
open(java.lang.String url, java.lang.String windowName, int width, int height, BorderStyle border): these methods are not (in Vaadin 7.1) deprecated.
You can use the URL parameter to call a simple servlet that downloads the requested file.
The drawback is that downloading in this way may be blocked by the browser’s popup-blocker.