示例#1
0
  /*------------------------------------------------------------------*/
  void stepProgressBar() {
    long timeStamp = System.currentTimeMillis();

    completed = completed + 1;
    if (50L < (timeStamp - lastTime)) {
      lastTime = timeStamp;
      progressBar.show((double) completed / (double) processDuration);
    }
  } /* end stepProgressBar */
示例#2
0
 /*------------------------------------------------------------------*/
 void resetProgressBar() {
   completed = 0;
   lastTime = System.currentTimeMillis();
   progressBar.show(2.0);
 } /* end resetProgressBar */
示例#3
0
 /*------------------------------------------------------------------*/
 void cleanUpProgressBar() {
   completed = 0;
   progressBar.show(2.0);
 } /* end cleanUpProgressBar */