Exemplo n.º 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 */
Exemplo n.º 2
0
 /*------------------------------------------------------------------*/
 void resetProgressBar() {
   completed = 0;
   lastTime = System.currentTimeMillis();
   progressBar.show(2.0);
 } /* end resetProgressBar */
Exemplo n.º 3
0
 /*------------------------------------------------------------------*/
 void cleanUpProgressBar() {
   completed = 0;
   progressBar.show(2.0);
 } /* end cleanUpProgressBar */