|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.dialogs.DialogPage org.eclipse.jface.wizard.WizardPage
An abstract base implementation of a wizard page.
Subclasses must implement the createControl method to create the specific controls for the wizard page.
Subclasses may call the following methods to configure the wizard page:
Subclasses may override these methods if required:
Note that clients are free to implement IWizardPage from scratch instead of subclassing WizardPage. Correct implementations of IWizardPage will work with any correct implementation of IWizard.
Field Summary |
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
protected | WizardPage(String pageName)
Creates a new wizard page with the given name, and with no title or image. |
protected | WizardPage(String pageName,
String title,
ImageDescriptor titleImage)
Creates a new wizard page with the given name, title, and image. |
Method Summary | |
boolean | canFlipToNextPage()
The WizardPage implementation of this IWizardPage method returns true if this page is complete (isPageComplete) and there is a next page to flip to. |
protected IWizardContainer | getContainer()
Returns the wizard container for this wizard page. |
protected IDialogSettings | getDialogSettings()
Returns the dialog settings for this wizard page. |
Image | getImage()
Returns this dialog page's image. |
String | getName()
Returns this page's name. |
IWizardPage | getNextPage()
Returns the wizard page that would to be shown if the user was to press the Next button. |
IWizardPage | getPreviousPage()
Returns the wizard page that would to be shown if the user was to press the Back button. |
Shell | getShell()
The WizardPage implementation of this method declared on DialogPage returns the shell of the container. |
IWizard | getWizard()
Returns the wizard that hosts this wizard page. |
protected boolean | isCurrentPage()
Returns whether this page is the current one in the wizard's container. |
boolean | isPageComplete()
The WizardPage implementation of this IWizard method returns the value of an internal state variable set by setPageComplete. |
void | setDescription(String description)
The WizardPage implementation of this IDialogPage method extends the DialogPage implementation to update the wizard container title bar. |
void | setErrorMessage(String newMessage)
The WizardPage implementation of this method declared on DialogPage updates the container if this is the current page. |
void | setImageDescriptor(ImageDescriptor image)
The WizardPage implementation of this method declared on DialogPage updates the container if this page is the current page. |
void | setMessage(String newMessage,
int newType)
The WizardPage implementation of this method declared on DialogPage updates the container if this is the current page. |
void | setPageComplete(boolean complete)
Sets whether this page is complete. |
void | setPreviousPage(IWizardPage page)
Sets the wizard page that would typically be shown if the user was to press the Back button. |
void | setTitle(String title)
The WizardPage implementation of this IDialogPage method extends the DialogPage implementation to update the wizard container title bar. |
void | setWizard(IWizard newWizard)
Sets the wizard that hosts this wizard page. |
String | toString()
Returns a printable representation of this wizard page suitable only for debug purposes. |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
createControl, dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible |
Constructor Detail |
protected WizardPage(String pageName)
protected WizardPage(String pageName, String title, ImageDescriptor titleImage)
Method Detail |
public boolean canFlipToNextPage()
protected IWizardContainer getContainer()
protected IDialogSettings getDialogSettings()
public Image getImage()
public String getName()
public IWizardPage getNextPage()
public IWizardPage getPreviousPage()
public Shell getShell()
public IWizard getWizard()
protected boolean isCurrentPage()
public boolean isPageComplete()
public void setDescription(String description)
public void setErrorMessage(String newMessage)
public void setImageDescriptor(ImageDescriptor image)
public void setMessage(String newMessage, int newType)
public void setPageComplete(boolean complete)
This information is typically used by the wizard to decide when it is okay to move on to the next page or finish up.
public void setPreviousPage(IWizardPage page)
This method is called by the container.
public void setTitle(String title)
public void setWizard(IWizard newWizard)
public String toString()
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.