EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana.event
Class UploadProgressEvent

java.lang.Object
  extended by java.util.EventObject
      extended by echopoint.tucana.event.UploadEvent
          extended by echopoint.tucana.event.UploadProgressEvent
All Implemented Interfaces:
Serializable

public class UploadProgressEvent
extends UploadEvent

An event indicating that a file upload has progressed.

Note: Development of this component was sponsored by TCN Broadcasting. We are grateful for their support and sponsorship.

Version:
$Id: UploadProgressEvent.java 90 2008-11-11 01:41:05Z sptrakesh $
Author:
Rakesh Vidyadharan 2008-11-4
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UploadProgressEvent(FileUploadSelector source, String index, String fileName, String contentType, UploadProgress progress)
          Creates a new UploadEvent.
UploadProgressEvent(FileUploadSelector source, String index, UploadProgress progress)
          Short form of the constructor that populates only the mandatory fields.
 
Method Summary
 UploadProgress getProgress()
          Returns the progress of the file upload.
 
Methods inherited from class echopoint.tucana.event.UploadEvent
getContentType, getFileName, getIndex
 
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

UploadProgressEvent

public UploadProgressEvent(FileUploadSelector source,
                           String index,
                           UploadProgress progress)
Short form of the constructor that populates only the mandatory fields.

Parameters:
source - the source of the event
index - the index of the upload
progress - The progress of the file upload.

UploadProgressEvent

public UploadProgressEvent(FileUploadSelector source,
                           String index,
                           String fileName,
                           String contentType,
                           UploadProgress progress)
Creates a new UploadEvent. This is the designated constructor.

Parameters:
source - the source of the event
index - the index of the upload
fileName - the name of the file, may not contain path information
contentType - the content type of the uploaded file
progress - The progress of the file upload.
Method Detail

getProgress

public UploadProgress getProgress()
Returns the progress of the file upload.

Returns:
the progress of the file upload.

EchoPoint API - 3.0.0b5
App Webcontainer