java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
com.ibm.jdg2e.wizards.newwizards.PageChain
Customized WizardPage that both displays information about
the current Wizard/WizardPage state and can
provide user control of page flow through the active Wizard.
Based on how the page is instantiated/configured, it can be one of a set of
defined pages for a Wizard, or be one in a chain of pages
(hence the name: PageChain).
The UI, as defined in PageChain.createControl() displays:
WizardPage,
DefinedPageWizard,
DynamicPageWizard| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
|---|
ERROR, INFORMATION, NONE, WARNING |
| Constructor Summary | |
|---|---|
PageChain(java.lang.String pageName)
Generated constructor to set page name. |
|
PageChain(java.lang.String pageName,
java.lang.String title,
org.eclipse.jface.resource.ImageDescriptor titleImage)
Generated constructor to set page name, title, and image. |
|
PageChain(org.eclipse.jface.wizard.Wizard wizard,
java.lang.String pageName,
int pageNumber,
java.lang.String title,
org.eclipse.jface.resource.ImageDescriptor titleImage)
Alternate constructor that saves a reference to the Wizard
that created the page and initializes the pageNumber for
this page. |
|
| Method Summary | |
|---|---|
void |
createControl(org.eclipse.swt.widgets.Composite composite)
Create wizard page user interface. |
(package private) void |
dynmaicUIControl(org.eclipse.swt.widgets.Composite parent)
Attempts to customize UI based on previous page data. |
(package private) void |
fillPageSetList(org.eclipse.jface.wizard.IWizardPage[] pages)
Finds pages known to active Wizard and stores them in
pageSet, a List UI control on the wizard
page. |
(package private) void |
fillTraversedPagesList(org.eclipse.jface.wizard.IWizardPage chain,
org.eclipse.swt.widgets.List traversedPages)
Finds pages visted by the active Wizard and stores them in
traversedPages, a List UI control on the
wizard page. |
(package private) org.eclipse.jface.wizard.IWizardPage |
getAltNextPage()
Lazily creates and returns the alternate wizard page. |
java.lang.String |
getInputValue()
Returns value of input field on UI for use in logic of the next page. |
org.eclipse.jface.wizard.IWizardPage |
getNextPage()
Overridden implementation is in use when the page is dynamic. |
(package private) java.lang.String |
getPageSetDetails()
Returns a String describing the current active page in the
set of pages known to the Wizard. |
(package private) org.eclipse.jface.wizard.IWizardPage |
getStandardNextPage()
Lazily creates and returns the standard wizard page. |
void |
setDynamicPage(boolean b)
Defines the wizard page as one that can particpate in a dynamic list of wizard pages. |
void |
setStartIncompletePage(boolean startIncompletePage)
|
void |
setVisible(boolean visible)
Uses page entry/exit trigger to reset user interface to display the correct page state. |
| Methods inherited from class org.eclipse.jface.wizard.WizardPage |
|---|
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.wizard.IWizardPage |
|---|
canFlipToNextPage, getName, getPreviousPage, getWizard, isPageComplete, setPreviousPage, setWizard |
| Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
|---|
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle |
| Constructor Detail |
public PageChain(java.lang.String pageName)
pageName -
public PageChain(java.lang.String pageName,
java.lang.String title,
org.eclipse.jface.resource.ImageDescriptor titleImage)
pageName - title - titleImage -
public PageChain(org.eclipse.jface.wizard.Wizard wizard,
java.lang.String pageName,
int pageNumber,
java.lang.String title,
org.eclipse.jface.resource.ImageDescriptor titleImage)
Wizard
that created the page and initializes the pageNumber for
this page.
wizard - pageName - pageNumber - title - titleImage - | Method Detail |
public void createControl(org.eclipse.swt.widgets.Composite composite)
createControl in interface org.eclipse.jface.dialogs.IDialogPageIDialogPage.createControl(org.eclipse.swt.widgets.Composite)void dynmaicUIControl(org.eclipse.swt.widgets.Composite parent)
parent - void fillPageSetList(org.eclipse.jface.wizard.IWizardPage[] pages)
Wizard and stores them in
pageSet, a List UI control on the wizard
page.
pages -
void fillTraversedPagesList(org.eclipse.jface.wizard.IWizardPage chain,
org.eclipse.swt.widgets.List traversedPages)
Wizard and stores them in
traversedPages, a List UI control on the
wizard page.
chain - traversedPages - org.eclipse.jface.wizard.IWizardPage getAltNextPage()
public java.lang.String getInputValue()
public org.eclipse.jface.wizard.IWizardPage getNextPage()
The implementation inherited from WizardPage just returns
the next page known to the Wizard. The PageChain
implementation returns either a standard page or alternate page (names
and title differ). Page returned depends on UI values as defined by the
user (standard or alternate page).
getNextPage in interface org.eclipse.jface.wizard.IWizardPageWizard.setDynamicPage(boolean),
IWizardPage.getNextPage()java.lang.String getPageSetDetails()
String describing the current active page in the
set of pages known to the Wizard.
org.eclipse.jface.wizard.IWizardPage getStandardNextPage()
public void setDynamicPage(boolean b)
b - public void setStartIncompletePage(boolean startIncompletePage)
startIncompletePage - The startIncompletePage to set.public void setVisible(boolean visible)
setVisible in interface org.eclipse.jface.dialogs.IDialogPageIDialogPage.setVisible(boolean)