Пример #1
0
  /** @Method: showProgress @Description: ��½ʱ�������ʾ. */
  private void showProgress() {
    mProgressDialog = new ProgressDialog(this);
    mProgressDialog.setIcon(R.drawable.l_cn_48);
    mProgressDialog.setTitle("�ϴ���,���Ժ�...");
    mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);

    mProgressDialog.show();
  }
 /**
  * creates a new EncryptionSwingWorker
  *
  * @param parentFrame the parent frame
  * @param backupMainPanel the BackupMainPanel
  * @param destinationPath the path of the current destination directory
  * @param encfsPlainDir the plaintext encfs dir where to copy the files into
  * @param encfsCipherPath the path of the ciphertext encfs dir
  * @param password the encfs password
  */
 public EncryptionFinishSwingWorker(
     Frame parentFrame,
     BackupMainPanel backupMainPanel,
     String destinationPath,
     File encfsPlainDir,
     String encfsCipherPath,
     String password) {
   this.parentFrame = parentFrame;
   this.backupMainPanel = backupMainPanel;
   this.destinationPath = destinationPath;
   this.encfsPlainDir = encfsPlainDir;
   this.encfsCipherPath = encfsCipherPath;
   this.password = password;
   encfsPath = encfsPlainDir.getPath();
   processExecutor = new ProcessExecutor();
   ProgressDialog progressDialog = new ProgressDialog(parentFrame, processExecutor);
   progressDialog.setIcon(IconManager.INFORMATION_ICON);
   progressDialog.setMessage(BUNDLE.getString("Removing_Unencrypted_Files"));
   progressDialog.setSpecialIcon(null);
   progressDialog.setIndeterminate(true);
   progressDialog.setCancelButtonVisible(false);
   dialogHandler = new ModalDialogHandler(progressDialog);
   dialogHandler.show();
 }