All methods
- cancelDownload
- Immediately cancel the download in progress and disable the cancel button.
- cancelUpload
- Immediately cancel the upload in progress and disable the cancel button.
- completeHandler FileDownload private method
- Once the download has completed, change the progress bar's label and
disable the "Cancel" button since the download is already completed.
- completeHandler FileUpload private method
- Once the upload has completed, change the progress bar's label and
disable the "Cancel" button since the upload is already completed.
- init FileDownload
- Set references to the components, and add listeners for the OPEN,
PROGRESS, and COMPLETE events.
- init FileUpload
- Set references to the components, and add listeners for the SELECT,
OPEN, PROGRESS, and COMPLETE events.
- openHandler FileDownload private method
- When the OPEN event has dispatched, change the progress bar's label
and enable the "Cancel" button, which allows the user to abort the
download operation.
- openHandler FileUpload private method
- When the OPEN event has dispatched, change the progress bar's label
and enable the "Cancel" button, which allows the user to abort the
upload operation.
- progressHandler FileDownload private method
- While the file is downloading, update the progress bar's status and label.
- progressHandler FileUpload private method
- While the file is uploading, update the progress bar's status and label.
- selectHandler private method
- Begin uploading the file specified in the UPLOAD_URL constant.
- startDownload
- Begin downloading the file specified in the DOWNLOAD_URL constant.
- startUpload
- Launch the browse dialog box which allows the user to select a file to upload to the server.