Author: chatellier Date: 2010-02-02 10:59:29 +0000 (Tue, 02 Feb 2010) New Revision: 2971 Removed: isis-fish/branches/3.3.1/src/main/java/fr/ifremer/isisfish/ui/simulator/SensWizard.java Log: Remove unused class Deleted: isis-fish/branches/3.3.1/src/main/java/fr/ifremer/isisfish/ui/simulator/SensWizard.java =================================================================== --- isis-fish/branches/3.3.1/src/main/java/fr/ifremer/isisfish/ui/simulator/SensWizard.java 2010-02-02 10:06:41 UTC (rev 2970) +++ isis-fish/branches/3.3.1/src/main/java/fr/ifremer/isisfish/ui/simulator/SensWizard.java 2010-02-02 10:59:29 UTC (rev 2971) @@ -1,67 +0,0 @@ -/* *##% - * Copyright (C) 2002, 2009 Code Lutin - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * 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 Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - *##%*/ - -package fr.ifremer.isisfish.ui.simulator; - -import javax.swing.JButton; -import javax.swing.JTabbedPane; - -/** - * SensWizard. - * - * Created: 14 nov. 2005 - * - * @author Arnaud Thimel <thimel at codelutin.com> - * Copyright Code Lutin - * @version $Revision$ - * - * Mise a jour: $Date$ - * par : $Author$ - * - * @deprecated on 20080223 seams to be unused - */ -public class SensWizard { - - /** - * Methode appelee à lors du passage d'une fenetre a une autre dans le - * wizard - * @return l'index de la tab a selectionner - */ - public static int newTab(JButton prev, JButton next, JButton finish, - JTabbedPane tabPane) { - // La direction du changement de tab (+1, -1) - //int step = ((Integer)currentContext.getData("_step")).intValue(); - // La nouvelle tab sélectionnée par l'utilisateur - int tab = tabPane.getSelectedIndex(); - if (tab > 0) { - prev.setEnabled(true); - } else { - prev.setEnabled(false); - } - // Active/desactive les boutons next et finish - if (tab == tabPane.getTabCount() - 1) { - next.setEnabled(false); - finish.setEnabled(true); - } else { - next.setEnabled(true); - finish.setEnabled(false); - } - return tab; - } - -} //SensWizard