public final void setInitialSelection() { Iterator<PluginConnector> i = validConnectors.iterator(); while (i.hasNext()) { PluginConnector pc = i.next(); if (pc.getJobDataExportClass().equals(data.getClass())) { formatComboBox.setSelectedItem(pc); } } }
/** @param evt Event */ private void nextButtonActionPerformed(final ActionEvent evt) { PluginConnector plugin = (PluginConnector) formatComboBox.getSelectedItem(); if (data != null & data.getClass().equals(plugin.getClass())) { plugin.getNewExportJobsWindow(data).setVisible(true); dispose(); } else { plugin.getNewExportJobsWindow().setVisible(true); dispose(); } }
/** @param evt Event */ private void formatComboBoxActionPerformed(final ActionEvent evt) { PluginConnector selected = (PluginConnector) formatComboBox.getSelectedItem(); formatDescriptionTextArea.setText(selected.getDescription()); formatDescriptionTextArea.setCaretPosition(0); }