Java com.vaadin.server FileDownloader fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.server FileDownloader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.server FileDownloader.

The text is from its open source code.

Subclass

com.vaadin.server.FileDownloader has subclasses.
Click this link to see all its subclasses.

Constructor

FileDownloader(Resource resource)
Creates a new file downloader for the given resource.

Method

voidextend(AbstractComponent target)
Add this extension to the target component.
voidextend(EventTrigger eventTrigger)
Add this extension to the EventTrigger .
voidsetFileDownloadResource(Resource resource)
Sets the resource that is downloaded when the extended component is clicked.
voidsetOverrideContentType(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.