public static class WResource.WFileResource
extends com.vaadin.server.StreamResource
| Constructor and Description |
|---|
WFileResource(Variant.ClosureVariant closure,
boolean forceSave,
Form form)
Creates a resource representing a file.
|
| Modifier and Type | Method and Description |
|---|---|
Variant.ClosureVariant |
getClosure()
Returns the closure this file resource invokes to obtain the file representation.
|
com.vaadin.server.DownloadStream |
getStream() |
public WFileResource(Variant.ClosureVariant closure, boolean forceSave, Form form)
closure - a closure which returns the File RecordHolder. Not null.forceSave - true if the browser should ask the user to save the fileform - public com.vaadin.server.DownloadStream getStream()
getStream in interface com.vaadin.server.ConnectorResourcegetStream in class com.vaadin.server.StreamResourcepublic Variant.ClosureVariant getClosure()
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.