com.webcodepro.applecommander.ui.swt.wizard
Class Wizard

java.lang.Object
  extended by com.webcodepro.applecommander.ui.swt.wizard.Wizard
Direct Known Subclasses:
CompareDisksWizard, CompileWizard, DiskImageWizard, ExportWizard, ImportWizard

public abstract class Wizard
extends java.lang.Object

A framework for displaying a wizard-like user interface.

Author:
Rob Greene

Constructor Summary
Wizard(org.eclipse.swt.widgets.Shell parent, org.eclipse.swt.graphics.Image logo, java.lang.String title)
          Constructor for Wizard.
 
Method Summary
abstract  WizardPane createInitialWizardPane()
          Create the initial display used in the wizard.
 void dispose()
          Dispose of all panels and resources.
 void enableFinishButton(boolean state)
          Enable/disable the finish button.
 void enableNextButton(boolean state)
          Enable/disable the next button.
protected  org.eclipse.swt.widgets.Button getBackButton()
           
protected  org.eclipse.swt.widgets.Composite getContentPane()
          Get the content pane.
 org.eclipse.swt.widgets.Shell getDialog()
          Get the Wizard dialog Shell object.
protected  java.util.Stack getWizardPanes()
           
 boolean isWizardCompleted()
          Indicates if the wizard was completed.
 void open()
          Open and display the dialog.
protected  void setWizardCompleted(boolean wizardCompleted)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wizard

public Wizard(org.eclipse.swt.widgets.Shell parent,
              org.eclipse.swt.graphics.Image logo,
              java.lang.String title)
Constructor for Wizard.

Method Detail

createInitialWizardPane

public abstract WizardPane createInitialWizardPane()
Create the initial display used in the wizard.


open

public void open()
Open and display the dialog.


dispose

public void dispose()
Dispose of all panels and resources.


isWizardCompleted

public boolean isWizardCompleted()
Indicates if the wizard was completed.


enableNextButton

public void enableNextButton(boolean state)
Enable/disable the next button.


enableFinishButton

public void enableFinishButton(boolean state)
Enable/disable the finish button.


getContentPane

protected org.eclipse.swt.widgets.Composite getContentPane()
Get the content pane.


getDialog

public org.eclipse.swt.widgets.Shell getDialog()
Get the Wizard dialog Shell object. Used by WizardPanes if a popup window is needed.


getBackButton

protected org.eclipse.swt.widgets.Button getBackButton()
Returns:
Returns the backButton.

getWizardPanes

protected java.util.Stack getWizardPanes()
Returns:
Returns the wizardPanes.

setWizardCompleted

protected void setWizardCompleted(boolean wizardCompleted)
Parameters:
wizardCompleted - The wizardCompleted to set.