es.uvigo.ei.sing.aibench.shell.SampleGUI Maven / Gradle / Ivy
The newest version!
/*
* #%L
* The AIBench Shell Plugin
* %%
* Copyright (C) 2006 - 2017 Daniel Glez-Peña and Florentino Fdez-Riverola
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
package es.uvigo.ei.sing.aibench.shell;
import javax.swing.JOptionPane;
import es.uvigo.ei.aibench.core.ParamSource;
import es.uvigo.ei.aibench.core.ParamSpec;
import es.uvigo.ei.aibench.core.operation.OperationDefinition;
import es.uvigo.ei.aibench.workbench.InputGUI;
import es.uvigo.ei.aibench.workbench.ParamsReceiver;
public class SampleGUI implements InputGUI{
private ParamsReceiver rec;
public void finish() {
}
public void init(ParamsReceiver arg0, OperationDefinition> arg1) {
rec = arg0;
rec.paramsIntroduced(new ParamSpec[]{new ParamSpec("an array", String.class, JOptionPane.showInputDialog("give me a string: "), ParamSource.STRING_CONSTRUCTOR)});
}
public void onValidationError(Throwable arg0) {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy