com.ibm.commons.swt.dialog
Class WizardPageExt

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by com.ibm.commons.swt.dialog.WizardPageExt
All Implemented Interfaces:
IDialogPageExt, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public abstract class WizardPageExt
extends org.eclipse.jface.wizard.WizardPage
implements IDialogPageExt

Abstract class that must be used for any Wizard Page intended to be used in a LWPDOnePageDialog

See Also:
com.ibm.commons.swt.dialog.WizardExt} {@link com.ibm.commons.swt.data.dialog.LWPDOnePageDialog}

Field Summary
protected  java.lang.String helpContext
          The context id for the help for the current wizard page
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
WizardPageExt(java.lang.String pageName)
          Constructs a new instance of this wizard page.
WizardPageExt(java.lang.String pageName, java.lang.String title, org.eclipse.jface.resource.ImageDescriptor titleImage)
          Constructs a new instance of the wizard page.
 
Method Summary
protected  boolean findFinishButton(org.eclipse.swt.widgets.Control c)
          Return the Finish button for the current dialog
protected  org.eclipse.jface.wizard.IWizardContainer getContainer()
           
protected  java.lang.String getInfoHelp()
           
protected  void hookListenerToControl(org.eclipse.swt.widgets.Control parent)
           
 boolean isDirty()
          Returns whether or not the user has made any changes in the dialog since it first appeared.
protected  void loadInfoHelp(java.lang.String infoHelp)
          Sets the context help id on the current wizard page.
 void performHelp()
          When the Help has been closed, Dialogs need a push to reopen the Help.
 void setDirty(boolean bSet)
           
 void setMessage(java.lang.String newMessage)
           
 void setMessage(java.lang.String newMessage, int newType)
           
 void setWizardContainer(org.eclipse.jface.wizard.IWizardContainer wizardContainer)
          Sets the wizard container for the current page.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, 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, setButtonLayoutData, setControl, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.commons.swt.dialog.IDialogPageExt
performDialogOperation, validatePage
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, setVisible
 

Field Detail

helpContext

protected java.lang.String helpContext
The context id for the help for the current wizard page

Constructor Detail

WizardPageExt

public WizardPageExt(java.lang.String pageName)
Constructs a new instance of this wizard page.

Parameters:
pageName - an id for the wizard page

WizardPageExt

public WizardPageExt(java.lang.String pageName,
                     java.lang.String title,
                     org.eclipse.jface.resource.ImageDescriptor titleImage)
Constructs a new instance of the wizard page.

Parameters:
pageName - an id for the wizard page
title - the title for this page
titleImage - the image for the title of the page
Method Detail

getContainer

protected org.eclipse.jface.wizard.IWizardContainer getContainer()
Overrides:
getContainer in class org.eclipse.jface.wizard.WizardPage

setWizardContainer

public void setWizardContainer(org.eclipse.jface.wizard.IWizardContainer wizardContainer)
Description copied from interface: IDialogPageExt
Sets the wizard container for the current page.

Specified by:
setWizardContainer in interface IDialogPageExt

hookListenerToControl

protected void hookListenerToControl(org.eclipse.swt.widgets.Control parent)

setMessage

public void setMessage(java.lang.String newMessage)
Overrides:
setMessage in class org.eclipse.jface.dialogs.DialogPage

setMessage

public void setMessage(java.lang.String newMessage,
                       int newType)
Overrides:
setMessage in class org.eclipse.jface.wizard.WizardPage

getInfoHelp

protected java.lang.String getInfoHelp()
Returns:
the help context id

performHelp

public void performHelp()
When the Help has been closed, Dialogs need a push to reopen the Help.

Specified by:
performHelp in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
performHelp in class org.eclipse.jface.dialogs.DialogPage

loadInfoHelp

protected void loadInfoHelp(java.lang.String infoHelp)
Sets the context help id on the current wizard page.

Parameters:
infoHelp - the context help to load

isDirty

public boolean isDirty()
Returns whether or not the user has made any changes in the dialog since it first appeared.

Returns:

setDirty

public void setDirty(boolean bSet)
Parameters:
bSet -

findFinishButton

protected boolean findFinishButton(org.eclipse.swt.widgets.Control c)
Return the Finish button for the current dialog

Parameters:
c -
Returns: