abstractpublic class Wizard implements IWizard(Code)
An abstract base implementation of a wizard. A typical client subclasses
Wizard to implement a particular wizard.
Subclasses may call the following methods to configure the wizard:
addPage
setHelpAvailable
setDefaultPageImageDescriptor
setDialogSettings
setNeedsProgressMonitor
setTitleBarColor
setWindowTitle
Subclasses may override these methods if required:
reimplement createPageControls
reimplement performCancel
extend addPages
reimplement performFinish
extend dispose
Note that clients are free to implement IWizard from scratch
instead of subclassing Wizard. Correct implementations of
IWizard will work with any correct implementation of
IWizardPage.
createPageControls(Composite pageContainer) The Wizard implementation of this IWizard
method creates all the pages controls using
IDialogPage.createControl.
public void
dispose() The Wizard implementation of this IWizard
method disposes all the pages controls using
DialogPage.dispose.
The Wizard implementation of this IWizard
method does nothing. Subclasses should extend if extra pages need to be
added before the wizard opens. New pages should be added by calling
addPage.
public void createPageControls(Composite pageContainer)(Code)
The Wizard implementation of this IWizard
method creates all the pages controls using
IDialogPage.createControl. Subclasses should reimplement
this method if they want to delay creating one or more of the pages
lazily. The framework ensures that the contents of a page will be created
before attempting to show it.
The Wizard implementation of this IWizard
method disposes all the pages controls using
DialogPage.dispose. Subclasses should extend this method
if the wizard instance maintains addition SWT resource that need to be
disposed.
The Wizard implementation of this IWizard
method does nothing and returns true. Subclasses should
reimplement this method if they need to perform any special cancel
processing for their wizard.
The result of this method is typically used by the container to show or
hide the Help button.
Parameters: b - true if help is available, andfalse if this wizard is helpless See Also:Wizard.isHelpAvailable()
setNeedsProgressMonitor
public void setNeedsProgressMonitor(boolean b)(Code)
Sets whether this wizard needs a progress monitor.
Parameters: b - true if a progress monitor is required, andfalse if none is needed See Also:Wizard.needsProgressMonitor()