com.vaadin.ui
Class Upload.StartedEvent
java.lang.Object
java.util.EventObject
com.vaadin.event.ConnectorEvent
com.vaadin.ui.Component.Event
com.vaadin.ui.Upload.StartedEvent
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- Upload
public static class Upload.StartedEvent
- extends Component.Event
Upload.StartedEvent event is sent when the upload is started to received.
- Since:
- 5.0
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
Upload.StartedEvent(Upload source,
java.lang.String filename,
java.lang.String MIMEType,
long contentLength)
|
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 |
Upload.StartedEvent
public Upload.StartedEvent(Upload source,
java.lang.String filename,
java.lang.String MIMEType,
long contentLength)
- Parameters:
source
- filename
- MIMEType
- length
-
getUpload
public Upload getUpload()
- Uploads where the event occurred.
- Returns:
- the Source of the event.
getFilename
public java.lang.String getFilename()
- Gets the file name.
- Returns:
- the filename.
getMIMEType
public java.lang.String getMIMEType()
- Gets the MIME Type of the file.
- Returns:
- the MIME type.
getContentLength
public long getContentLength()
- Returns:
- the length of the file that is being uploaded
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.