📄 wizardprocessmodel.java
字号:
/* * WizardProcessModel.java * * Copyright (C) 2002, 2003, 2004, 2005, 2006 Takis Diakoumis * * 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 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 org.underworldlabs.swing.wizard;import java.util.List;import javax.swing.JPanel;/* ---------------------------------------------------------- * CVS NOTE: Changes to the CVS repository prior to the * release of version 3.0.0beta1 has meant a * resetting of CVS revision numbers. * ---------------------------------------------------------- *//** * Defines the model for a wizard process. * * @author Takis Diakoumis * @version $Revision: 1.4 $ * @date $Date: 2006/05/14 06:56:07 $ */public interface WizardProcessModel { /** * Returns the descriptive values for the wizard steps. * * @return the descriptive steps */ public String[] getSteps(); /** * Increments the current index. */ public boolean next(); /** * Decrements the current index. */ public boolean previous(); /** * Returns the step text at the specified index. * * @param index - the index */ public String getStep(int index); /** * Returns the title text at the specified index. * * @param index - the index */ public String getTitle(int index); /** * Returns the titles for each panel. * * @return the panel titles */ public String[] getTitles(); /** * Returns the next panel in the wizard and increments the * selected index. * * @return the next panel */ public JPanel getNextPanel(); /** * Returns the previous panel in the wizard and decrements the * selected index. * * @return the previous panel */ public JPanel getPreviousPanel(); /** * Returns whether there is a valid panel to be selected next. * * @return true | false */ public boolean hasNext(); /** * Returns whether there is a valid panel to be selected previous. * * @return true | false */ public boolean hasPrevious(); /** * Returns the current index in the model. * * @return the currently selected index */ public int getSelectedIndex(); /** * Returns the index of the specified panel in this model. * * @param panel - the panel * @return the panel index */ public int getIndexOf(JPanel panel); /** * Returns the panel at the specified index. * * @param index - the panel to be retrieved */ public JPanel getPanelAt(int index); /** * Adds the specified panel to the end of the model. * * @param panel - the panel to be added */ public void addPanel(JPanel panel); /** * Returns the number of panel components in this model. * * @return the panel count */ public int getPanelCount(); /** * Returns a list of panels making up this model. * * @return the panels collection */ public List<JPanel> getPanels(); /** * Sets the list of panels making up this model. * * @param panels - the panels */ public void setPanels(List<JPanel> panels); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -