Package com.vaadin.ui
Class Html5File
- java.lang.Object
-
- com.vaadin.ui.Html5File
-
- All Implemented Interfaces:
Serializable
public class Html5File extends Object implements Serializable
DragAndDropWrappercan receive also files from client computer if appropriate HTML 5 features are supported on client side. This class wraps information about dragged file on server side.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileName()longgetFileSize()StreamVariablegetStreamVariable()StringgetType()voidsetStreamVariable(StreamVariable streamVariable)Sets theStreamVariablethat into which the file contents will be written.
-
-
-
Method Detail
-
getFileName
public String getFileName()
-
getFileSize
public long getFileSize()
-
getType
public String getType()
-
setStreamVariable
public void setStreamVariable(StreamVariable streamVariable)
Sets theStreamVariablethat into which the file contents will be written. Usage of StreamVariable is similar toUploadcomponent.If the
StreamVariableis not set in theDropHandlerthe file contents will not be sent to server.Note! receiving file contents is experimental feature depending on HTML 5 API's. It is supported only by modern web browsers like Firefox 3.6 and above and recent webkit based browsers (Safari 5, Chrome 6) at this time.
- Parameters:
streamVariable- the callback that returns stream where the implementation writes the file contents as it arrives.
-
getStreamVariable
public StreamVariable getStreamVariable()
-
-