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

Class StartedEvent

source code

      object --+        
               |        
util.EventObject --+    
                   |    
     component.Event --+
                       |
                      StartedEvent

Upload.StartedEvent event is sent when the upload is started to received.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
__init__(self, source, filename, MIMEType, contentLength)
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
 
getContentLength(self)
Returns: the length of the file that is being uploaded
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]
  _length
Length of the received file.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

Constructs a new event with the specified source component.

Parameters:
  • source - the source component of the event
Overrides: object.__init__
(inherited documentation)

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.

getContentLength(self)

source code 
Returns:
the length of the file that is being uploaded