JavaPowUpload 1.0 control documentation
ProgressInfo object provides a way to access information of download/upload progress. You cannot create an ProgressInfo object directly. You should obtain it by getProgressInfo() method of an JavaPowUpload object.

ProgressInfo object methods  



getFilesCount method

getSelectedFilesCount method

getTotalSize method

getCurrentFileTotalSize method

getBytesRead method

getCurrentFileBytesRead method

getBandwidth method

getCurrentFileName method

getCurrentFileIndex method

getTotalPercent method

getCurrentFilePercent method

getHoursLeft method

getMinLeft method

getSecLeft method

getFormattedStatus method


getFilesCount

long getFilesCount()

Description

Method returns total files count in tree.

Example

var count=JavaPowUpload.getProgressInfo().getFilesCount();



getSelectedFilesCount

long getSelectedFilesCount()

Description

Method returns count of selected (checked) files in tree.

Example

var count=JavaPowUpload.getProgressInfo().getSelectedFilesCount();



getTotalSize

long getTotalSize()

Description

Method returns total size of all files.

Example

var totalSize=JavaPowUpload.getProgressInfo().getTotalSize();

 

getCurrentFileTotalSize

long getCurrentFileTotalSize()

Description

Method returns size of file that currently in progress.

Example

var fileSize=JavaPowUpload.getProgressInfo().getCurrentFileTotalSize();;

 

getBytesRead

long getBytesRead()

Description

Method returns count of downloaded (uploaded) bytes.

Example

var bytesRead=JavaPowUpload.getProgressInfo().getBytesRead();


getCurrentFileBytesRead

long getCurrentFileBytesRead()

Description

Method returns count of downloaded (uploaded) bytes of file that currently in progress.

Example

var fileBytesRead=JavaPowUpload.getProgressInfo().getCurrentFileBytesRead();

getBandwidth

long getBandwidth()

Description

Method returns current bandwidth, in bytes per second.

Example

var bandwidth=JavaPowUpload.getProgressInfo().getBandwidth();

 

getCurrentFileName

String getCurrentFileName()

Description

Method returns name of file that currently in progress.

Example

var currentFileName=JavaPowUpload.getProgressInfo().getCurrentFileName();

getCurrentFileIndex

long getCurrentFileIndex()

Description

Method returns index of file that currently in progress.

Example

var currentFileIndex=JavaPowUpload.getProgressInfo().getCurrentFileIndex();

 

getTotalPercent

long getTotalPercent()

Description

Method returns total percent uploaded.

Example

var percent=JavaPowUpload.getProgressInfo().getTotalPercent();



getCurrentFilePercent

long getCurrentFilePercent()

Description

Method returns percent of completion of file that currently in progress.

Example

var curFilePercent=JavaPowUpload.getProgressInfo().getCurrentFilePercent();



getHoursLeft

long getHoursLeft()

Description

Method returns the count of hours left to finish download (upload) based on the average speed.

Example

var hoursLeft=JavaPowUpload.getProgressInfo().getHoursLeft();

 

getMinLeft

long getMinLeft()

Description

Method returns the count of minutes left to finish download (upload) based on the average speed.

Example

var minLeft=JavaPowUpload.getProgressInfo().getMinLeft();

 

getSecLeft

long getSecLeft()

Description

Method returns the count of seconds left to finish download (upload) based on the average speed.

Example

var secLeft=JavaPowUpload.getProgressInfo().getSecLeft();

 

getFormattedStatus

boolean getFormattedStatus()

Description

Method returns value of parameter Download.ProgressArea.StatusMessage.Downloading (Download.ProgressArea.StatusMessage.Uploading in upload mode) with replaced tokens.

Example

var progressString=JavaPowUpload.getProgressInfo().getFormattedStatus();