Package com.vaadin.shared.ui.dnd
Class FileParameters
- java.lang.Object
-
- com.vaadin.shared.ui.dnd.FileParameters
-
- All Implemented Interfaces:
Serializable
public class FileParameters extends Object implements Serializable
Contains parameters of a file. Used for transferring information about dropped files from the client to the server.- Since:
- 8.1
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileParameters()Creates a file parameters object.FileParameters(String name, long size, String mime)Creates a file parameters object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMime()Gets the mime type.StringgetName()Gets the file name.longgetSize()Gets the file size.voidsetMime(String mime)Sets the mime type.voidsetName(String name)Sets the file name.voidsetSize(long size)Sets the file size.
-
-
-
Method Detail
-
getName
public String getName()
Gets the file name.- Returns:
- Name of the file.
-
setName
public void setName(String name)
Sets the file name.- Parameters:
name- Name of the file.
-
getSize
public long getSize()
Gets the file size.- Returns:
- Size of the file.
-
setSize
public void setSize(long size)
Sets the file size.- Parameters:
size- Size of the file.
-
getMime
public String getMime()
Gets the mime type.- Returns:
- Mime type of the file.
-
setMime
public void setMime(String mime)
Sets the mime type.- Parameters:
mime- Mime type of the file.
-
-