.addOkListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) {
.addOkListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) {
((GOEPanel) m_Editor.getCustomEditor()).addOkListener(this); if (m_Editor.supportsCustomEditor()) { view = (Component) m_Editor.getCustomEditor();
.addOkListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) {
.addOkListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) {
.addOkListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) {
.addOkListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) {
((GOEPanel) goe.getCustomEditor()).addOkListener(new ActionListener() {
((GOEPanel) m_Editor.getCustomEditor()).addOkListener(this); if (m_Editor.supportsCustomEditor()) { view = (Component) m_Editor.getCustomEditor();
/** * Pops up generic object editor with list of conversion filters * * @param f the File */ private void converterQuery(final File f) { final GenericObjectEditor convEd = new GenericObjectEditor(true); try { convEd.setClassType(weka.core.converters.Loader.class); convEd.setValue(new weka.core.converters.CSVLoader()); ((GenericObjectEditor.GOEPanel) convEd.getCustomEditor()) .addOkListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tryConverter((Loader) convEd.getValue(), f); } }); } catch (Exception ex) { } PropertyDialog pd; if (PropertyDialog.getParentDialog(this) != null) pd = new PropertyDialog(PropertyDialog.getParentDialog(this), convEd, -1, -1); else pd = new PropertyDialog(PropertyDialog.getParentFrame(this), convEd, -1, -1); pd.setVisible(true); }
/** * Pops up generic object editor with list of conversion filters * * @param f the File */ private void converterQuery(final File f) { final GenericObjectEditor convEd = new GenericObjectEditor(true); try { convEd.setClassType(weka.core.converters.Loader.class); convEd.setValue(new weka.core.converters.CSVLoader()); ((GenericObjectEditor.GOEPanel) convEd.getCustomEditor()) .addOkListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tryConverter((Loader) convEd.getValue(), f); } }); } catch (Exception ex) { } PropertyDialog pd; if (PropertyDialog.getParentDialog(this) != null) pd = new PropertyDialog(PropertyDialog.getParentDialog(this), convEd, -1, -1); else pd = new PropertyDialog(PropertyDialog.getParentFrame(this), convEd, -1, -1); pd.setVisible(true); }
/** * For initializing the GUI. */ @Override protected void initGUI() { super.initGUI(); setDefaultCloseOperation(GenericObjectEditorDialog.HIDE_ON_CLOSE); getContentPane().setLayout(new BorderLayout()); getContentPane().add(m_Editor.getCustomEditor(), BorderLayout.CENTER); ((GOEPanel) m_Editor.getCustomEditor()).addOkListener(this); pack(); }
/** * For initializing the GUI. */ @Override protected void initGUI() { super.initGUI(); setDefaultCloseOperation(GenericObjectEditorDialog.HIDE_ON_CLOSE); getContentPane().setLayout(new BorderLayout()); getContentPane().add(m_Editor.getCustomEditor(), BorderLayout.CENTER); ((GOEPanel) m_Editor.getCustomEditor()).addOkListener(this); pack(); }