Package org.eclipse.jface.wizard
Class WizardSelectionPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.jface.wizard.WizardSelectionPage
- All Implemented Interfaces:
IDialogPage,IMessageProvider,IWizardPage
An abstract implementation of a wizard page that manages a
set of embedded wizards.
A wizard selection page should present a list of wizard nodes
corresponding to other wizards. When the end user selects one of
them from the list, the first page of the selected wizard becomes
the next page. The only new methods introduced by this class are
getSelectedNode and setSelectedNode.
Otherwise, the subclass contract is the same as WizardPage.
-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWizardSelectionPage(String pageName) Creates a new wizard selection page with the given name, and with no title or image. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTheWizardSelectionPageimplementation of thisIWizardPagemethod returnstrueif there is a selected node.voiddispose()TheWizardSelectionPageimplementation of anIDialogPagemethod disposes of all nested wizards.TheWizardSelectionPageimplementation of thisIWizardPagemethod returns the first page of the currently selected wizard if there is one.Returns the currently selected wizard node within this page.protected voidsetSelectedNode(IWizardNode node) Sets or clears the currently selected wizard node within this page.Methods inherited from class org.eclipse.jface.wizard.WizardPage
getContainer, getDialogSettings, getImage, getName, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringMethods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisibleMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Constructor Details
-
WizardSelectionPage
Creates a new wizard selection page with the given name, and with no title or image.- Parameters:
pageName- the name of the page
-
-
Method Details
-
canFlipToNextPage
public boolean canFlipToNextPage()TheWizardSelectionPageimplementation of thisIWizardPagemethod returnstrueif there is a selected node.- Specified by:
canFlipToNextPagein interfaceIWizardPage- Overrides:
canFlipToNextPagein classWizardPage- Returns:
trueif the next page could be displayed, andfalseotherwise- See Also:
-
dispose
public void dispose()TheWizardSelectionPageimplementation of anIDialogPagemethod disposes of all nested wizards. Subclasses may extend.- Specified by:
disposein interfaceIDialogPage- Overrides:
disposein classDialogPage
-
getNextPage
TheWizardSelectionPageimplementation of thisIWizardPagemethod returns the first page of the currently selected wizard if there is one.- Specified by:
getNextPagein interfaceIWizardPage- Overrides:
getNextPagein classWizardPage- Returns:
- the next wizard page, or
nullif none
-
getSelectedNode
Returns the currently selected wizard node within this page.- Returns:
- the wizard node, or
nullif no node is selected
-
setSelectedNode
Sets or clears the currently selected wizard node within this page.- Parameters:
node- the wizard node, ornullto clear
-