com.vaadin.shared.ui.dnd.
Class FileParameters
- java.lang.Object
-
- com.vaadin.shared.ui.dnd.FileParameters
-
All Implemented Interfaces:
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:
-
-
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 Modifier and Type Method Description String
getMime()
Gets the mime type.
String
getName()
Gets the file name.
long
getSize()
Gets the file size.
void
setMime(String mime)
Sets the mime type.
void
setName(String name)
Sets the file name.
void
setSize(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.
-
-