Examples of ExportDialog


Examples of org.freehep.util.export.ExportDialog

    /**
     * Shows a screenshot dialog used to select screenshot format
     */
    public void showScreenShotDialog() {
      ExportDialog export = new ExportDialog("JWAT - version ???");
      export.showExportDialog(this, "Export as image...", this, "graph");
    }
View Full Code Here

Examples of org.freehep.util.export.ExportDialog

  /**
   * Shows a screenshot dialog used to select screenshot format
   */
  public void showScreenShotDialog() {
    ExportDialog export = new ExportDialog("JWAT - version ???");
    export.showExportDialog(this, "Export as image...", this, "graph");
  }
View Full Code Here

Examples of org.freehep.util.export.ExportDialog

    /**
     * Shows a screenshot dialog used to select screenshot format
     */
    public void showScreenShotDialog() {
      ExportDialog export = new ExportDialog("JWAT - version ???");
      export.showExportDialog(this, "Export as image...", this, "graph");
    }
View Full Code Here

Examples of org.freehep.util.export.ExportDialog

  /**
   * Shows a screenshot dialog used to select screenshot format
   */
  public void showScreenShotDialog() {
    ExportDialog export = new ExportDialog("JWAT - version ???");
    export.showExportDialog(this, "Export as image...", this, "graph");
  }
View Full Code Here

Examples of org.freehep.util.export.ExportDialog

  /**
   * Shows a screenshot dialog used to select screenshot format
   */
  public void showScreenShotDialog() {
    ExportDialog export = new ExportDialog("JWAT - version ???");
    export.showExportDialog(this, "Export as image...", this, "graph");
  }
View Full Code Here

Examples of org.freehep.util.export.ExportDialog

  /**
   * Shows a screenshot dialog used to select screenshot format
   */
  public void showScreenShotDialog() {
    ExportDialog export = new ExportDialog("Java Modelling Tools - version " + GlobalSettings.getSetting(GlobalSettings.VERSION));
    export.setUserProperties(Defaults.getProperties());
    export.showExportDialog(this, "Export as image...", this, "graph");
    Defaults.save();
  }
View Full Code Here

Examples of org.freehep.util.export.ExportDialog

      saveAs.addActionListener(new AbstractAction() {
        private static final long serialVersionUID = 1L;

        public void actionPerformed(ActionEvent e) {
          ExportDialog export = new ExportDialog();
          export.showExportDialog((Component) JabaGraph.this,
              "Export view as ...", (Component) JabaGraph.this,
              "Export");
        }

      });
View Full Code Here

Examples of org.freehep.util.export.ExportDialog

    /**
     * {@inheritDoc}
     */
    public void actionPerformed(ActionEvent e) {
        ExportDialog export = new ExportDialog();
        export.showExportDialog(fGraphPanel.getView(), "ExportAction view as ...", fGraphPanel.getView(), "export");
    }
View Full Code Here

Examples of org.freehep.util.export.ExportDialog

    }
    colorChooser.setVisible(true);
  }

  void export() {
    final ExportDialog export = new ExportDialog();
    export.setIcon(new ImageIcon(imageIcon));
    try {
      export.showExportDialog(gview, "Export view as ...", gview, "export");
    } catch (Exception ex) {
      ex.printStackTrace();
    }

  }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.gui.export.ExportDialog

        final ProfileForm profileForm = droidContext.getSelectedProfile();
        profileForm.stop();
    }

    private void export() {
        ExportDialog exportOptions = new ExportDialog(this);
        if (globalContext.getGlobalConfig().getBooleanProperty(DroidGlobalProperty.CSV_EXPORT_ROW_PER_FORMAT)) {
            exportOptions.setExportOptions(ExportOptions.ONE_ROW_PER_FORMAT);
        } else {
            exportOptions.setExportOptions(ExportOptions.ONE_ROW_PER_FILE);
        }
        exportOptions.showDialog();
        if (exportOptions.isApproved()) {
            int response = exportFileChooser.showSaveDialog(this);
            if (response == JFileChooser.APPROVE_OPTION) {
                List<String> profileIds = new ArrayList<String>();
                profileIds.addAll(exportOptions.getSelectedProfileIds());
                //for (ProfileForm profileForm : droidContext.allProfiles()) {
                //    profileIds.add(profileForm.getProfile().getUuid());
                // }
               
                final ExportAction exportAction = globalContext.getActionFactory().newExportAction();

                final ExportProgressDialog exportDialog = new ExportProgressDialog(this, exportAction);

                exportAction.setDestination(exportFileChooser.getSelectedFile());
                exportAction.setProfileIds(profileIds);
                exportAction.setExportOptions(exportOptions.getExportOptions());
                exportAction.setOutputEncoding(exportOptions.getOutputEncoding());
               
                exportAction.setCallback(new ActionDoneCallback<ExportAction>() {
                    @Override
                    public void done(ExportAction action) {
                        try {
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.