| org.eclipse.jface.wizard.IWizard
All known Subclasses: org.eclipse.jface.wizard.Wizard,
IWizard | public interface IWizard (Code) | | Interface for a wizard. A wizard maintains a list of wizard pages,
stacked on top of each other in card layout fashion.
The class Wizard provides an abstract implementation
of this interface. However, clients are also free to implement this
interface if Wizard does not suit their needs.
See Also: Wizard |
Method Summary | |
public void | addPages() Adds any last-minute pages to this wizard. | public boolean | canFinish() Returns whether this wizard could be finished without further user
interaction. | public void | createPageControls(Composite pageContainer) Creates this wizard's controls in the given parent control.
The wizard container calls this method to create the controls
for the wizard's pages before the wizard is opened. | public void | dispose() Disposes of this wizard and frees all SWT resources. | public IWizardContainer | getContainer() Returns the container of this wizard. | public Image | getDefaultPageImage() Returns the default page image for this wizard. | public IDialogSettings | getDialogSettings() Returns the dialog settings for this wizard. | public IWizardPage | getNextPage(IWizardPage page) Returns the successor of the given page. | public IWizardPage | getPage(String pageName) Returns the wizard page with the given name belonging to this wizard. | public int | getPageCount() Returns the number of pages in this wizard. | public IWizardPage[] | getPages() Returns all the pages in this wizard. | public IWizardPage | getPreviousPage(IWizardPage page) Returns the predecessor of the given page. | public IWizardPage | getStartingPage() Returns the first page to be shown in this wizard. | public RGB | getTitleBarColor() Returns the title bar color for this wizard. | public String | getWindowTitle() Returns the window title string for this wizard. | public boolean | isHelpAvailable() Returns whether help is available for this wizard. | public boolean | needsPreviousAndNextButtons() Returns whether this wizard needs Previous and Next buttons. | public boolean | needsProgressMonitor() Returns whether this wizard needs a progress monitor. | public boolean | performCancel() Performs any actions appropriate in response to the user
having pressed the Cancel button, or refuse if canceling
now is not permitted. | public boolean | performFinish() Performs any actions appropriate in response to the user
having pressed the Finish button, or refuse if finishing
now is not permitted.
Normally this method is only called on the container's
current wizard. | public void | setContainer(IWizardContainer wizardContainer) Sets or clears the container of this wizard. |
addPages | public void addPages()(Code) | | Adds any last-minute pages to this wizard.
This method is called just before the wizard becomes visible, to give the
wizard the opportunity to add any lazily created pages.
|
canFinish | public boolean canFinish()(Code) | | Returns whether this wizard could be finished without further user
interaction.
The result of this method is typically used by the wizard container to enable
or disable the Finish button.
true if the wizard could be finished,and false otherwise |
createPageControls | public void createPageControls(Composite pageContainer)(Code) | | Creates this wizard's controls in the given parent control.
The wizard container calls this method to create the controls
for the wizard's pages before the wizard is opened. This allows
the wizard to size correctly; otherwise a resize may occur when
moving to a new page.
Parameters: pageContainer - the parent control |
dispose | public void dispose()(Code) | | Disposes of this wizard and frees all SWT resources.
|
getContainer | public IWizardContainer getContainer()(Code) | | Returns the container of this wizard.
the wizard container, or null if thiswizard has yet to be added to a container |
getDefaultPageImage | public Image getDefaultPageImage()(Code) | | Returns the default page image for this wizard.
This image can be used for pages which do not
supply their own image.
the default page image |
getDialogSettings | public IDialogSettings getDialogSettings()(Code) | | Returns the dialog settings for this wizard.
The dialog store is used to record state between
wizard invocations (for example, radio button selections,
last directory, etc.).
the dialog settings, or null if none |
getNextPage | public IWizardPage getNextPage(IWizardPage page)(Code) | | Returns the successor of the given page.
This method is typically called by a wizard page
Parameters: page - the page the next page, or null if none |
getPage | public IWizardPage getPage(String pageName)(Code) | | Returns the wizard page with the given name belonging to this wizard.
Parameters: pageName - the name of the wizard page the wizard page with the given name, or null if none |
getPageCount | public int getPageCount()(Code) | | Returns the number of pages in this wizard.
the number of wizard pages |
getPages | public IWizardPage[] getPages()(Code) | | Returns all the pages in this wizard.
a list of pages |
getPreviousPage | public IWizardPage getPreviousPage(IWizardPage page)(Code) | | Returns the predecessor of the given page.
This method is typically called by a wizard page
Parameters: page - the page the previous page, or null if none |
getStartingPage | public IWizardPage getStartingPage()(Code) | | Returns the first page to be shown in this wizard.
the first wizard page |
getTitleBarColor | public RGB getTitleBarColor()(Code) | | Returns the title bar color for this wizard.
the title bar color |
getWindowTitle | public String getWindowTitle()(Code) | | Returns the window title string for this wizard.
the window title string, or null for no title |
isHelpAvailable | public boolean isHelpAvailable()(Code) | | Returns whether help is available for this wizard.
The result of this method is typically used by the container to
show or hide the Help button.
true if help is available,and false if this wizard is helpless |
needsPreviousAndNextButtons | public boolean needsPreviousAndNextButtons()(Code) | | Returns whether this wizard needs Previous and Next buttons.
The result of this method is typically used by the container.
true if Previous and Next buttons are required,and false if none are needed |
needsProgressMonitor | public boolean needsProgressMonitor()(Code) | | Returns whether this wizard needs a progress monitor.
The result of this method is typically used by the container.
true if a progress monitor is required,and false if none is needed |
performCancel | public boolean performCancel()(Code) | | Performs any actions appropriate in response to the user
having pressed the Cancel button, or refuse if canceling
now is not permitted.
true to indicate the cancel requestwas accepted, and false to indicatethat the cancel request was refused |
performFinish | public boolean performFinish()(Code) | | Performs any actions appropriate in response to the user
having pressed the Finish button, or refuse if finishing
now is not permitted.
Normally this method is only called on the container's
current wizard. However if the current wizard is a nested wizard
this method will also be called on all wizards in its parent chain.
Such parents may use this notification to save state etc. However,
the value the parents return from this method is ignored.
true to indicate the finish requestwas accepted, and false to indicatethat the finish request was refused |
setContainer | public void setContainer(IWizardContainer wizardContainer)(Code) | | Sets or clears the container of this wizard.
Parameters: wizardContainer - the wizard container, or null |
|
|