Package com.commander4j.util

Examples of com.commander4j.util.JExcel


    {
      moduleType = "EXEC";
      rs = module.getModuleDataByType(moduleType);
    }

    JExcel export = new JExcel();
    export.saveAs("modules_" + moduleType + ".xls", rs, Common.mainForm);
  }
View Full Code Here


      jButtonExcel = new JButton4j(Common.icon_XLS);
      jButtonExcel.addActionListener(new ActionListener() {
        public void actionPerformed(final ActionEvent e) {
          JDBControl control = new JDBControl(Common.selectedHostID, Common.sessionID);

          JExcel export = new JExcel();
          buildSQL();
          export.saveAs("control.xls", control.getControlDataResultSet(listStatement), Common.mainForm);
        }
      });
      jButtonExcel.setText(lang.get("btn_Excel"));
      jButtonExcel.setMnemonic(lang.getMnemonicChar());
      jButtonExcel.setBounds(331, 275, 106, 30);
View Full Code Here

  }
 
  private boolean generateExcel(ResultSet temp)
  {
    boolean result = true;
    JExcel export = new JExcel();
    setExportFilename(getExportPath() + getReportID() + "_" + JUtility.getISOTimeStampStringFormat(JUtility.getSQLDateTime()).replace("T", "_").replace("-", "_").replace(":", "_") + ".xls");
    setExportFilename(promptUserforSave());
    export.exportToExcel(getExportFilename(), temp);
    return result;
  }
View Full Code Here

        jButtonExcel = new JButton4j(Common.icon_XLS);
        jButtonExcel.addActionListener(new ActionListener() {
          public void actionPerformed(final ActionEvent e) {
            JDBArchive arch = new JDBArchive(Common.selectedHostID, Common.sessionID);

            JExcel export = new JExcel();
            buildSQL();
            export.saveAs("archive.xls", arch.getArchiveDataResultSet(listStatement), Common.mainForm);
          }
        });
        jButtonExcel.setText(lang.get("btn_Excel"));
        jButtonExcel.setMnemonic(lang.getMnemonicChar());
        jButtonExcel.setBounds(470, 275, 115, 30);
View Full Code Here

    }
  }

  private void export() {
    JDBLocation location = new JDBLocation(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    PreparedStatement temp = buildSQLr();
    export.saveAs("locations.xls", location.getLocationDataResultSet(temp), Common.mainForm);
  }
View Full Code Here

    {
      moduleType = "EXEC";
      rs = module.getModuleDataByType(moduleType);
    }

    JExcel export = new JExcel();
    export.saveAs("modules_" + moduleType + ".xls", rs, Common.mainForm);
  }
View Full Code Here

    JButton4j btnExcel = new JButton4j(lang.get("btn_Excel"));
    btnExcel.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent arg0)
      {
        JExcel export = new JExcel();
        PreparedStatement temp = buildSQL();

        ResultSet rs;

        try
        {
          rs = temp.executeQuery();
          export.saveAs("qm_results.xls", rs, Common.mainForm);
        } catch (Exception e)
        {
          rs = null;

        }
View Full Code Here

      jButtonExcel = new JButton4j(Common.icon_XLS);
      jButtonExcel.addActionListener(new ActionListener() {
        public void actionPerformed(final ActionEvent e) {
          JDBPrinters printers = new JDBPrinters(Common.selectedHostID, Common.sessionID);

          JExcel export = new JExcel();
          buildSQL();
          export.saveAs("printers.xls", printers.getPrintersResultSet(listStatement), Common.mainForm);
        }
      });
      jButtonExcel.setText(lang.get("btn_Excel"));
      jButtonExcel.setMnemonic(lang.getMnemonicChar());
      jButtonExcel.setBounds(331, 275, 106, 30);
View Full Code Here

    }
  }

  private void excel() {
    JDBUser user = new JDBUser(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    export.saveAs("users.xls", user.getUserDataResultSet(), Common.mainForm);
  }
View Full Code Here

  }

  private void excel()
  {
    JDBQMDictionary dict = new JDBQMDictionary(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    PreparedStatement ps = dict.getDictionaryDataPreparedStatement();
    export.saveAs("qm_dictionary.xls", dict.getDictionaryDataResultSet(ps), Common.mainForm);
    try
    {
      ps.close();
    } catch (SQLException e)
    {
View Full Code Here

TOP

Related Classes of com.commander4j.util.JExcel

Copyright © 2018 www.massapicom. 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.