We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.ui.
Class Upload.StartedEvent
java.lang.Object
java.util.EventObject
com.vaadin.ui.Component.Event
com.vaadin.ui.Upload.StartedEvent
All Implemented Interfaces:
Enclosing class:
- extends Component.Event
public static class Upload.StartedEvent
Upload.StartedEvent event is sent when the upload is started to received.
Since:
5.0
Version:
6.8.18
Author:
Vaadin Ltd.
See Also:
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
Upload.StartedEvent(Upload source,
String filename,
String MIMEType,
long contentLength)
|
Method Summary | |
---|---|
long |
getContentLength()
|
String |
getFilename()
Gets the file name. |
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.StartedEvent
public Upload.StartedEvent(Upload source,
String filename,
String MIMEType,
long contentLength)
Parameters:
source
-
filename
-
MIMEType
-
length
-
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.
getContentLength
public long getContentLength()
- Returns:
- the length of the file that is being uploaded