Cancels the transfer process. |
|
Returns the number of bytes to transfer for the current file. |
|
Returns the index of the current file being transferred. |
|
Returns the number of bytes already transferred for the current file. |
|
Returns the name of the current file being transferred. |
|
Returns the total bytes to transfer to or from the server (sum of all the files size) |
|
Returns the total number of files to transfer. |
|
Returns the total bytes already transferred (for all files) |
|
Returns true if the process was canceled. |
|
Returns true if the process is finished. |
|
Sets a method to be called repeatedly at the given interval (in seconds), the method will receive an instance of this JSProgressMonitor updated with the latest values. |
|
Sets a method to be called repeatedly at the given interval (in seconds), the method will receive an instance of this JSProgressMonitor updated with the latest values. |
|
|
Cancels the transfer process. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
getCurrentBytesToTransfer() |
|
Returns the number of bytes to transfer for the current file. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.output('total transferred: ' + monitor.getTotalTransferredBytes() + ' / ' + monitor.getTotalBytesToTransfer());
application.output('current file: ' + monitor.getCurrentTransferredFileName() + ' ( ' + monitor.getCurrentFileIndex() + ' / ' + monitor.getTotalFilesToTransfer() + ' )');
application.output('current bytes transferred: '+monitor.getCurrentTransferredBytes() + ' / ' + monitor.getCurrentBytesToTransfer());
if (monitor.isCanceled()) {
application.output('canceled!')
}
if (monitor.isFinished()) {
application.output('finished!')
} |
|
|
|
|
Returns the index of the current file being transferred. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.output('total transferred: ' + monitor.getTotalTransferredBytes() + ' / ' + monitor.getTotalBytesToTransfer());
application.output('current file: ' + monitor.getCurrentTransferredFileName() + ' ( ' + monitor.getCurrentFileIndex() + ' / ' + monitor.getTotalFilesToTransfer() + ' )');
application.output('current bytes transferred: '+monitor.getCurrentTransferredBytes() + ' / ' + monitor.getCurrentBytesToTransfer());
if (monitor.isCanceled()) {
application.output('canceled!')
}
if (monitor.isFinished()) {
application.output('finished!')
} |
|
|
|
|
getCurrentTransferredBytes() |
|
Returns the number of bytes already transferred for the current file. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.output('total transferred: ' + monitor.getTotalTransferredBytes() + ' / ' + monitor.getTotalBytesToTransfer());
application.output('current file: ' + monitor.getCurrentTransferredFileName() + ' ( ' + monitor.getCurrentFileIndex() + ' / ' + monitor.getTotalFilesToTransfer() + ' )');
application.output('current bytes transferred: '+monitor.getCurrentTransferredBytes() + ' / ' + monitor.getCurrentBytesToTransfer());
if (monitor.isCanceled()) {
application.output('canceled!')
}
if (monitor.isFinished()) {
application.output('finished!')
} |
|
|
|
|
getCurrentTransferredFileName() |
|
Returns the name of the current file being transferred. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.output('total transferred: ' + monitor.getTotalTransferredBytes() + ' / ' + monitor.getTotalBytesToTransfer());
application.output('current file: ' + monitor.getCurrentTransferredFileName() + ' ( ' + monitor.getCurrentFileIndex() + ' / ' + monitor.getTotalFilesToTransfer() + ' )');
application.output('current bytes transferred: '+monitor.getCurrentTransferredBytes() + ' / ' + monitor.getCurrentBytesToTransfer());
if (monitor.isCanceled()) {
application.output('canceled!')
}
if (monitor.isFinished()) {
application.output('finished!')
} |
|
|
|
|
getTotalBytesToTransfer() |
|
Returns the total bytes to transfer to or from the server (sum of all the files size) |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.output('total transferred: ' + monitor.getTotalTransferredBytes() + ' / ' + monitor.getTotalBytesToTransfer());
application.output('current file: ' + monitor.getCurrentTransferredFileName() + ' ( ' + monitor.getCurrentFileIndex() + ' / ' + monitor.getTotalFilesToTransfer() + ' )');
application.output('current bytes transferred: '+monitor.getCurrentTransferredBytes() + ' / ' + monitor.getCurrentBytesToTransfer());
if (monitor.isCanceled()) {
application.output('canceled!')
}
if (monitor.isFinished()) {
application.output('finished!')
} |
|
|
|
|
getTotalFilesToTransfer() |
|
Returns the total number of files to transfer. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.output('total transferred: ' + monitor.getTotalTransferredBytes() + ' / ' + monitor.getTotalBytesToTransfer());
application.output('current file: ' + monitor.getCurrentTransferredFileName() + ' ( ' + monitor.getCurrentFileIndex() + ' / ' + monitor.getTotalFilesToTransfer() + ' )');
application.output('current bytes transferred: '+monitor.getCurrentTransferredBytes() + ' / ' + monitor.getCurrentBytesToTransfer());
if (monitor.isCanceled()) {
application.output('canceled!')
}
if (monitor.isFinished()) {
application.output('finished!')
} |
|
|
|
|
getTotalTransferredBytes() |
|
Returns the total bytes already transferred (for all files) |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.output('total transferred: ' + monitor.getTotalTransferredBytes() + ' / ' + monitor.getTotalBytesToTransfer());
application.output('current file: ' + monitor.getCurrentTransferredFileName() + ' ( ' + monitor.getCurrentFileIndex() + ' / ' + monitor.getTotalFilesToTransfer() + ' )');
application.output('current bytes transferred: '+monitor.getCurrentTransferredBytes() + ' / ' + monitor.getCurrentBytesToTransfer());
if (monitor.isCanceled()) {
application.output('canceled!')
}
if (monitor.isFinished()) {
application.output('finished!')
} |
|
|
|
|
Returns true if the process was canceled. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.output('total transferred: ' + monitor.getTotalTransferredBytes() + ' / ' + monitor.getTotalBytesToTransfer());
application.output('current file: ' + monitor.getCurrentTransferredFileName() + ' ( ' + monitor.getCurrentFileIndex() + ' / ' + monitor.getTotalFilesToTransfer() + ' )');
application.output('current bytes transferred: '+monitor.getCurrentTransferredBytes() + ' / ' + monitor.getCurrentBytesToTransfer());
if (monitor.isCanceled()) {
application.output('canceled!')
}
if (monitor.isFinished()) {
application.output('finished!')
} |
|
|
|
|
Returns true if the process is finished. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.output('total transferred: ' + monitor.getTotalTransferredBytes() + ' / ' + monitor.getTotalBytesToTransfer());
application.output('current file: ' + monitor.getCurrentTransferredFileName() + ' ( ' + monitor.getCurrentFileIndex() + ' / ' + monitor.getTotalFilesToTransfer() + ' )');
application.output('current bytes transferred: '+monitor.getCurrentTransferredBytes() + ' / ' + monitor.getCurrentBytesToTransfer());
if (monitor.isCanceled()) {
application.output('canceled!')
}
if (monitor.isFinished()) {
application.output('finished!')
} |
|
|
|
|
setProgressCallBack(function, interval) |
|
Sets a method to be called repeatedly at the given interval (in seconds), the method will receive an instance of this JSProgressMonitor updated with the latest values. Can use an optional delay (for testing purpose in developer). |
|
|
Parameters the Function to call back at the specified interval |
|
the interval (in seconds) to use |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // call the progressCallbackFuntion every 2 and a half seconds (with a delay of 200ms in developer):
monitor.setProgressCallBack(progressCallbackFunction, 2.5, (application.isInDeveloper() ? 200 : 0)); |
|
|
|
|
setProgressCallBack(function, interval, delay) |
|
Sets a method to be called repeatedly at the given interval (in seconds), the method will receive an instance of this JSProgressMonitor updated with the latest values. Can use an optional delay (for testing purpose in developer). |
|
|
Parameters the Function to call back at the specified interval |
|
the interval (in seconds) to use |
|
adds a delay for testing purpose in Developer |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // call the progressCallbackFuntion every 2 and a half seconds (with a delay of 200ms in developer):
monitor.setProgressCallBack(progressCallbackFunction, 2.5, (application.isInDeveloper() ? 200 : 0)); |
|
|
|
|
|
|