com.vaadin.ui.
Class Upload.FinishedEvent
java.lang.Object
java.util.EventObject
com.vaadin.ui.Component.Event
com.vaadin.ui.Upload.FinishedEvent
All Implemented Interfaces:
Direct Known Subclasses:
Enclosing class:
- extends Component.Event
public static class Upload.FinishedEvent
Upload.FinishedEvent is sent when the upload receives a file, regardless of whether the reception was successful or failed. If you wish to distinguish between the two cases, use either SucceededEvent or FailedEvent, which are both subclasses of the FinishedEvent.
Since:
3.0
Version:
6.8.18
Author:
Vaadin Ltd.
See Also:
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
Upload.FinishedEvent(Upload source,
String filename,
String MIMEType,
long length)
|
Method Summary | |
---|---|
String |
getFilename()
Gets the file name. |
long |
getLength()
Gets the length of the file. |
String |
getMIMEType()
Gets the MIME Type of the file. |
Upload |
getUpload()
Uploads where the event occurred. |
Methods inherited from class com.vaadin.ui.Component.Event |
---|
getComponent |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
Upload.FinishedEvent
public Upload.FinishedEvent(Upload source,
String filename,
String MIMEType,
long length)
Parameters:
source
- the source of the file.
filename
- the received file name.
MIMEType
- the MIME type of the received file.
length
- the length of the received file.
Method Detail |
---|
getUpload
public Upload getUpload()
- Returns:
- the Source of the event.
Uploads where the event occurred.
getFilename
public String getFilename()
- Returns:
- the filename.
Gets the file name.
getMIMEType
public String getMIMEType()
- Returns:
- the MIME type.
Gets the MIME Type of the file.
getLength
public long getLength()
- Returns:
- the length.
Gets the length of the file.