/* * Filename: ControllingListener.java * * Author: Raf Van de Plas * * Contact: * Snail-mail: K.U.Leuven * ESAT-SCD * Kasteelpark Arenberg 10 * B-3001 Leuven-Heverlee * Belgium * Tel: +32 16 327927 * Fax: +32 16 321970 * Gsm: +32 474 243046 * E-mail: raf.vandeplas@esat.kuleuven.ac.be * WWW: http://www.esat.kuleuven.ac.be/~dna/BioI/ * * * Created on: Dec 8, 2003 * * Changed on: Dec 8, 2003 * * Version: 0.1 * * Description: * none * */ import java.awt.event.*; /** * @author rvdplas * * To change the template for this generated type comment go to * Window - Preferences - Java - Code Generation - Code and Comments */ public class ControllingListener implements ActionListener { private WizardController wizController = null; public ControllingListener(WizardController wizController) { super(); this.wizController = wizController; } public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("next")) { System.out.println("NEXT pressed."); } else if (e.getActionCommand().equals("back")) { System.out.println("BACK pressed."); } else if (e.getActionCommand().equals("finish")) { System.out.println("FINISH pressed."); } // else if (e.getActionCommand().equals("play")) // { // //System.out.println("PLAY pressed."); // this.restore.play(); // } // else if (e.getActionCommand().equals("pause")) // { // //System.out.println("PAUSE pressed."); // this.restore.pause(); // } // else if (e.getActionCommand().equals("stop")) // { // //System.out.println("STOP pressed."); // this.restore.stop(); // } // else if (e.getActionCommand().equals("about")) // { // //System.out.println("ABOUT Pressed."); // this.restore.about(); // } // else if (e.getActionCommand().equals("saveMessages")) // { // //System.out.println("SAVE MESSAGES Pressed."); // this.restore.saveMessageLog(); // } // else if (e.getActionCommand().equals("clearMessages")) // { // //System.out.println("CLEAR MESSAGES Pressed."); // this.restore.clearMessageLog(); // } // else if (e.getActionCommand().equals("fitDisplay")) // { // //System.out.println("FIT DISPLAY Pressed."); // this.restore.fitDisplay(); // } // else if (e.getActionCommand().equals("labelDisplay")) // { // //System.out.println("LABEL DISPLAY Pressed."); // this.restore.labelDisplay(); // } ///* else if (e.getActionCommand().equals("createScene")) // { // this.restore.createScene(); // System.out.println("Create Scene pressed."); // } // else if (e.getActionCommand().equals("createSimilarityMatrices")) // { // this.restore.createSimilarityMatrices(); // System.out.println("Create Similarity Matrices pressed."); // } // else if (e.getActionCommand().equals("createMatchingMatrices")) // { // this.restore.createMatchingMatrices(); // System.out.println("Create Matching Matrices pressed."); // } // else if (e.getActionCommand().equals("getBestFit")) // { // this.restore.getBestFit(); // System.out.println("Get Best Fit pressed."); // }*/ } }