Package muntjac :: Package ui :: Module upload :: Class FinishedEvent
[hide private]
[frames] | no frames]

Class FinishedEvent

source code

      object --+        
               |        
util.EventObject --+    
                   |    
     component.Event --+
                       |
                      FinishedEvent
Known Subclasses:

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.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
__init__(self, source, filename, MIMEType, length)
Constructs a new event with the specified source component.
source code
 
getUpload(self)
Uploads where the event occurred.
source code
 
getFilename(self)
Gets the file name.
source code
 
getMIMEType(self)
Gets the MIME Type of the file.
source code
 
getLength(self)
Gets the length of the file.
source code

Inherited from component.Event: getComponent

Inherited from util.EventObject: getSource

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  _type
MIME type of the received file.
  _filename
Received file name.
  _length
Length of the received file.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, source, filename, MIMEType, length)
(Constructor)

source code 

Constructs a new event with the specified source component.

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.
Overrides: object.__init__

getUpload(self)

source code 

Uploads where the event occurred.

Returns:
the source of the event.

getFilename(self)

source code 

Gets the file name.

Returns:
the filename.

getMIMEType(self)

source code 

Gets the MIME Type of the file.

Returns:
the MIME type.

getLength(self)

source code 

Gets the length of the file.

Returns:
the length.