Examples of SetProgress()


Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

    fileDialog.setFileFilter(filter);
    if (fileDialog.showOpenDialog(view) == JFileChooser.APPROVE_OPTION) {
      if (fileDialog.getSelectedFile().exists()) {
        WorkingDialog workDialog = new WorkingDialog(view);
        workDialog.setVisible(true);
        workDialog.SetProgress(0);
        try {
          ReadInFile(fileDialog.getSelectedFile());
          workDialog.dispose();
          //final adjustments
          JOptionPane.showMessageDialog(null,
View Full Code Here

Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

        } else if (JOptionPane.CANCEL_OPTION == changeReply) {
          return;
        }
        WorkingDialog workDialog = new WorkingDialog(view);
        workDialog.setVisible(true);
        workDialog.SetProgress(0);
        try {
          ReadInFile(fileDialog.getSelectedFile(), workDialog);
          workDialog.dispose();
          //final adjustments
          //version 2.20, fix the PeriodId field in Activity2
View Full Code Here

Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

      doOut.writeDouble(dVersionNumber);
      //save number of tables
      doOut.writeInt(sTables.length);
      //save each table
      workDialog.setVisible(true);
      workDialog.SetProgress(0);
      for (int i = 0; i < sTables.length; i++) {
        SaveTable(doOut, sTables[i], bBackupOneCompanyOnly, iCompanyToBackup);
        workDialog.SetProgress((i * 100) / (sTables.length));
      }
      SystemLog.ErrorPrintln("before clossing work dialog");
View Full Code Here

Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

      //save each table
      workDialog.setVisible(true);
      workDialog.SetProgress(0);
      for (int i = 0; i < sTables.length; i++) {
        SaveTable(doOut, sTables[i], bBackupOneCompanyOnly, iCompanyToBackup);
        workDialog.SetProgress((i * 100) / (sTables.length));
      }
      SystemLog.ErrorPrintln("before clossing work dialog");
      workDialog.dispose();
      SystemLog.ErrorPrintln("after clossing work dialog");

View Full Code Here

Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

    //this loop executes twice, first is just a test that the information
    //seems valid. The second is the real read

    WorkingDialog workDialog = new WorkingDialog(null);
    workDialog.setVisible(true);
    workDialog.SetProgress(0);
    Cipher myCipher = null;
    if (SetupInfo.getBoolProperty(SetupInfo.REQUIRE_BACKUP_PASSWORD)) {
      myCipher = createCipher(Cipher.DECRYPT_MODE);
    }
    for (int iTestFile = 0; iTestFile < 2; iTestFile++) {
View Full Code Here

Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

        }
        isBadActivityTable=false;
        for (int i = 0; i < iNumTables; i++) {
          RestoreTable(doIn, bIsTestOnly, bRestoreOneCompanyOnly,
              iCompanyToResoreTo);
          workDialog.SetProgress((iTestFile * iNumTables + i) * 100 / (2 * iNumTables));
        }
        if ( ! bRestoreOneCompanyOnly) restoredCompId=0;
        if (iNumTables == (sTables.length - 1) && !bIsTestOnly) {
          //this is an old import.  We must add the AccountTypes Manually
          DataConnection.AddDefaultAccountTypes(restoredCompId);
View Full Code Here

Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

  protected void doExport() {
    WorkingDialog workDialog=null;
    try{
      workDialog = new WorkingDialog(null);
      workDialog.setVisible(true);
      workDialog.SetProgress(0);
     
      BufferedWriter bufOut=new BufferedWriter(new OutputStreamWriter
        (new FileOutputStream(fileDialog.getSelectedFile()), "UTF-8"));     
     
      bufOut.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
View Full Code Here

Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

    OutputStream out;
    //create the export
    String sSelectString = getSelectString(selectedFields, fromDate, toDate);
    WorkingDialog workDialog = new WorkingDialog(null);
    workDialog.setVisible(true);
    workDialog.SetProgress(0);
    try {
      out = new FileOutputStream(outputFile);
      if (isExcel) {
        printer = new ExcelCSVPrinter(out);
      } else {
View Full Code Here

Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

      int rowNum = 0;
      while (rs.next()) {
        rowNum++;
        rowCountShowProgress++;
        if (rowCountShowProgress >= 10) {
          workDialog.SetProgress(rowNum * 100 / numRows);
          rowCountShowProgress = 0;
        }
        for (int i = 1; i <= iNumColumns; i++) {
          switch (rsmd.getColumnType(i)) {
            case Types.VARCHAR:
View Full Code Here

Examples of nu.lazy8.util.gen.WorkingDialog.SetProgress()

    int act_id_test = 0;
    int rowCount = 1;
    String errorMess;
    WorkingDialog workDialog = new WorkingDialog(null);
    workDialog.setVisible(true);
    workDialog.SetProgress(0);
    int numRows = 0;
    int rowCountShowProgress = 0;
    int numFields = -1;
    try {
      FileInputStream in = new FileInputStream(csvFile);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.