CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.gui
Interface WizardModel

All Known Implementing Classes:
ExportWizardModel, ImportWizardModel

public interface WizardModel

The wizard model extends the list model. The list model functionality is used to display the steps of a task. The list model is extended by a getPanel method which is used to retrieve a panel for the current step.

Author:
werni

Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void cancel()
          Cancels the wizard.
 boolean canFinish()
          Returns true, if the wizard can be finished.
 void finish()
          Finishes the wizard.
 javax.swing.JComponent getPanel(int index)
          Returns a panel.
 int getPanelCount()
          Returns the number of panels.
 java.lang.String getPanelTitle(int index)
          Returns the title of a panel.
 java.lang.String getTitle()
          The title of the wizard.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 

Method Detail

getPanelCount

int getPanelCount()
Returns the number of panels. If this changes, the model fires a property change event with the name "panelCount".


getPanel

javax.swing.JComponent getPanel(int index)
Returns a panel.


getPanelTitle

java.lang.String getPanelTitle(int index)
Returns the title of a panel.


canFinish

boolean canFinish()
Returns true, if the wizard can be finished.


finish

void finish()
Finishes the wizard.


cancel

void cancel()
Cancels the wizard.


getTitle

java.lang.String getTitle()
The title of the wizard.


addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener l)

removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener l)

(c) Werner Randelshofer.
All rights reserved.