ProgressInfo object methods
long getFilesCount()
Method returns total files count in tree.
var count=JavaPowUpload.getProgressInfo().getFilesCount();
long getSelectedFilesCount()
Method returns count of selected (checked) files in tree.
var count=JavaPowUpload.getProgressInfo().getSelectedFilesCount();
long getTotalSize()
Method returns total size of all files.
var totalSize=JavaPowUpload.getProgressInfo().getTotalSize();
long getCurrentFileTotalSize()
Method returns size of file that currently in progress.
var fileSize=JavaPowUpload.getProgressInfo().getCurrentFileTotalSize();
;
long getBytesRead()
Method returns count of downloaded (uploaded) bytes.
var bytesRead=JavaPowUpload.getProgressInfo().getBytesRead();
long getCurrentFileBytesRead()
Method returns count of downloaded (uploaded) bytes of file that currently in progress.
var fileBytesRead=JavaPowUpload.getProgressInfo().getCurrentFileBytesRead();
long getBandwidth()
Method returns current bandwidth, in bytes per second.
var bandwidth=JavaPowUpload.getProgressInfo().getBandwidth();
String getCurrentFileName()
Method returns name of file that currently in progress.
var currentFileName=JavaPowUpload.getProgressInfo().getCurrentFileName();
long getCurrentFileIndex()
Method returns index of file that currently in progress.
var currentFileIndex=JavaPowUpload.getProgressInfo().getCurrentFileIndex();
long getTotalPercent()
Method returns total percent uploaded.
var percent=JavaPowUpload.getProgressInfo().getTotalPercent();
long getCurrentFilePercent()
Method returns percent of completion of file that currently in progress.
var curFilePercent=JavaPowUpload.getProgressInfo().getCurrentFilePercent();
long getHoursLeft()
Method returns the count of hours left to finish download (upload) based on the average speed.
var hoursLeft=JavaPowUpload.getProgressInfo().getHoursLeft();
long getMinLeft()
Method returns the count of minutes left to finish download (upload) based on the average speed.
var minLeft=JavaPowUpload.getProgressInfo().getMinLeft();
long getSecLeft()
Method returns the count of seconds left to finish download (upload) based on the average speed.
var secLeft=JavaPowUpload.getProgressInfo().getSecLeft();
boolean getFormattedStatus()
Method returns value of parameter Download.ProgressArea.StatusMessage.Downloading (Download.ProgressArea.StatusMessage.Uploading in upload mode) with replaced tokens.
var progressString=JavaPowUpload.getProgressInfo().getFormattedStatus();