Class WizardDialog
- All Implemented Interfaces:
IPageChangeProvider, IRunnableContext, IShellProvider, IWizardContainer, IWizardContainer2
- Direct Known Subclasses:
ValidationDialog
Customized Wizard Dialog used when no progress bar is used.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class WizardDialog
WizardDialog.PageContainerFillLayoutNested classes/interfaces inherited from class Window
Window.IExceptionHandlerField Summary
Fields inherited from class WizardDialog
WIZ_IMG_ERRORFields inherited from class TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGEFields inherited from class Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSISFields inherited from class Window
CANCEL, OK, resizeHasOccurredConstructor Summary
ConstructorsConstructorDescriptionWizardDialog(Shell parentShell, Wizard wizard) Creates a new wizard dialog for the given wizard.WizardDialog(Shell parentShell, Wizard wizard, boolean checkStarting) Creates a new wizard dialog for the given wizard.Method Summary
Modifier and TypeMethodDescriptionprotected ControlcreateContents(Composite parent) TheWizardDialogimplementation of thisWindowmethod calls callIWizard.addPagesto allow the current wizard to add extra pages, thensuper.createContentsto create the controls.protected ProgressMonitorPartcreateProgressMonitorPart(Composite composite, GridLayout layout) Hook method for subclasses to create a custom progress monitor part.voidCalled this method to simulate a finish.Methods inherited from class WizardDialog
addPageChangedListener, addPageChangingListener, backPressed, buttonPressed, cancelPressed, close, configureShell, createButtonsForButtonBar, createDialogArea, firePageChanged, firePageChanging, getButton, getCurrentPage, getDialogBoundsSettings, getProgressMonitor, getSelectedPage, getShellStyle, getWizard, helpPressed, isModal, nextPressed, removePageChangedListener, removePageChangingListener, run, setButtonLayoutData, setMinimumPageSize, setMinimumPageSize, setModal, setPageSize, setPageSize, setShellStyle, setWizard, showPage, update, updateButtons, updateMessage, updateSize, updateSize, updateTitleBar, updateWindowTitleMethods inherited from class TitleAreaDialog
getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImageMethods inherited from class TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableMethods inherited from class Dialog
applyDialogFont, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutFormData, shortenTextMethods inherited from class Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setWindowManagerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IWizardContainer
getShell
Constructor Details
WizardDialog
WizardDialog
Creates a new wizard dialog for the given wizard.- Parameters:
parentShell- The parent shell.wizard- The wizard this dialog is working on.checkStarting- Flag for checking of IIZI starting up to display message and dismiss wizard if this is the case.
Method Details
createContents
TheWizardDialogimplementation of thisWindowmethod calls callIWizard.addPagesto allow the current wizard to add extra pages, thensuper.createContentsto create the controls. It then callsIWizard.createPageControlsto allow the wizard to pre-create their page controls prior to opening, so that the wizard opens to the correct size. And finally it shows the first page.- Overrides:
createContentsin classWizardDialog
createProgressMonitorPart
Hook method for subclasses to create a custom progress monitor part.- Overrides:
createProgressMonitorPartin classWizardDialog- Parameters:
composite- The parent composite.layout- The layout.- Returns:
- ProgressMonitorPart the progress monitor part
finishPressed
public void finishPressed()Called this method to simulate a finish.This method might close the dialog if it's OK to do so, i.e. the "performFinish()" method in the dialog returned true.
- Overrides:
finishPressedin classWizardDialog