org.mockcentral.editor.nodes.expectation.part.wizard
Class SelectSignaturePartTypePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.mockcentral.editor.nodes.expectation.part.wizard.SelectSignaturePartTypePage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class SelectSignaturePartTypePage
extends org.eclipse.jface.wizard.WizardPage

The WizardPage for an EditSignaturePartWizard used to display the controls for editing a SignaturePartBean instance. This page provides a read-only Combo to select the value type and provides a StackLayout used to display the various AbstractFieldEditor instances used to edit the value class name and value fields (as appropriate).

Author:
David Hutchinson

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
SelectSignaturePartTypePage(EditSignaturePartWizard wizard, org.mockcentral.server.SignaturePartBean bean)
          Creates a new instance.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
protected  AbstractFieldEditor getCurrentEditor()
          Returns the currently displayed AbstractFieldEditor.
 EditSignaturePartWizard getWizard()
           
 void setErrorMessage(java.lang.String s)
           
 void setVisible(boolean visible)
           
protected  void showEditor(org.mockcentral.server.ValueType newValueType)
          Shows the AbstractFieldEditor appropriate for editing the supplied ValueType.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, isCurrentPage, isPageComplete, setDescription, 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.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
 

Constructor Detail

SelectSignaturePartTypePage

public SelectSignaturePartTypePage(EditSignaturePartWizard wizard,
                                   org.mockcentral.server.SignaturePartBean bean)
Creates a new instance.

Parameters:
wizard - the EditSignaturePartWizard.
bean - the SignaturePartBean.
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
setVisible in class org.eclipse.jface.dialogs.DialogPage

setErrorMessage

public void setErrorMessage(java.lang.String s)
Overrides:
setErrorMessage in class org.eclipse.jface.wizard.WizardPage

getWizard

public EditSignaturePartWizard getWizard()
Specified by:
getWizard in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
getWizard in class org.eclipse.jface.wizard.WizardPage

getCurrentEditor

protected AbstractFieldEditor getCurrentEditor()
Returns the currently displayed AbstractFieldEditor.

Returns:
the currently displayed AbstractFieldEditor.

showEditor

protected void showEditor(org.mockcentral.server.ValueType newValueType)
Shows the AbstractFieldEditor appropriate for editing the supplied ValueType. If the argument is null, the type of the current SignaturePartBean is used.