com.itmill.toolkit.ui
Class Upload.FinishedEvent
java.lang.Object
java.util.EventObject
com.itmill.toolkit.ui.Component.Event
com.itmill.toolkit.ui.Upload.FinishedEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Upload.FailedEvent, Upload.SucceededEvent
- Enclosing class:
- Upload
public class Upload.FinishedEvent
- extends Component.Event
Upload.Received event is sent when the upload receives a file, regardless
if the receival was successfull.
- Since:
- 3.0
- Version:
- 4.1.4
- Author:
- IT Mill Ltd.
- See Also:
- Serialized Form
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.
getUpload
public Upload getUpload()
- Uploads where the event occurred.
- Returns:
- the Source of the event.
getFilename
public String getFilename()
- Gets the file name.
- Returns:
- the filename.
getLength
public long getLength()
- Gets the length of the file.
- Returns:
- the length.
getMIMEType
public String getMIMEType()
- Gets the MIME Type of the file.
- Returns:
- the MIME type.
Copyright © 2000-2008 IT Mill Ltd. All Rights Reserved.