Example usage for Java com.vaadin.server FileDownloader fields, constructors, methods, implement or subclass
The text is from its open source code.
FileDownloader(Resource resource) Creates a new file downloader for the given resource. |
void | extend(AbstractComponent target) Add this extension to the target component. |
void | extend(EventTrigger eventTrigger) Add this extension to the EventTrigger . |
void | setFileDownloadResource(Resource resource) Sets the resource that is downloaded when the extended component is clicked. |
void | setOverrideContentType(boolean overrideContentType) Sets whether the content type of served resources should be overridden to application/octet-stream to reduce the risk of a browser plugin choosing to display the resource instead of downloading it. |