com.vaadin.ui
Class Upload.FinishedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.ui.Component.Event
          extended by com.vaadin.ui.Upload.FinishedEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Upload.FailedEvent, Upload.SucceededEvent
Enclosing class:
Upload

public static class Upload.FinishedEvent
extends Component.Event

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:
7.0.0.alpha3
Author:
Vaadin Ltd.
See Also:
Serialized Form

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()
Uploads where the event occurred.

Returns:
the Source of the event.

getFilename

public String getFilename()
Gets the file name.

Returns:
the filename.

getMIMEType

public String getMIMEType()
Gets the MIME Type of the file.

Returns:
the MIME type.

getLength

public long getLength()
Gets the length of the file.

Returns:
the length.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.