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

java.lang.Object
  extended by org.mockcentral.editor.wizards.WizardDialogSettingsManager
      extended by org.mockcentral.editor.nodes.expectation.part.wizard.EditSignaturepartWizardDialogSettingsManager

public class EditSignaturepartWizardDialogSettingsManager
extends WizardDialogSettingsManager

A utility class used to manage storage and retrieval of dialog settings for the EditSignaturePartWizard and related classes.

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.mockcentral.editor.wizards.WizardDialogSettingsManager
dialog, DIALOG_HEIGHT, DIALOG_LOCATION_SETTINGS, DIALOG_LOCATION_X, DIALOG_LOCATION_Y, DIALOG_SIZE_SETTINGS, DIALOG_WIDTH, settings
 
Constructor Summary
EditSignaturepartWizardDialogSettingsManager(org.eclipse.jface.wizard.WizardDialog dialog, org.mockcentral.server.SignaturePartBean bean, boolean loadSettings)
          Creates a new instance.
 
Method Summary
protected  void loadModelSettings()
          Loads any stored settings for the bean's value class name and value fields based on what its value type is.
protected  void loadModelSettings(org.mockcentral.server.ValueType valueType)
          Checks for any stored valueClassName and value settings for the supplied ValueType; if found, the SignaturepartBean modeling the data is updated.
protected  void storeSizeAndLocationSettings()
          Stores dialog size and location as well as settings from the current SignaturepartBean.
 
Methods inherited from class org.mockcentral.editor.wizards.WizardDialogSettingsManager
getBooleanSetting, getDialogLocation, getDialogSize, getInitialDialogLocation, getInitialDialogSize, getStringSetting, loadSettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditSignaturepartWizardDialogSettingsManager

public EditSignaturepartWizardDialogSettingsManager(org.eclipse.jface.wizard.WizardDialog dialog,
                                                    org.mockcentral.server.SignaturePartBean bean,
                                                    boolean loadSettings)
Creates a new instance.

Parameters:
dialog - the EditSignaturePartWizardDialog.
bean - the SignaturePartBean being edited.
loadSettings - whether the stored settings should be loaded or not.
Method Detail

loadModelSettings

protected void loadModelSettings()
Loads any stored settings for the bean's value class name and value fields based on what its value type is.


loadModelSettings

protected void loadModelSettings(org.mockcentral.server.ValueType valueType)
Checks for any stored valueClassName and value settings for the supplied ValueType; if found, the SignaturepartBean modeling the data is updated.

Parameters:
valueType - the current ValueType selected by the user.

storeSizeAndLocationSettings

protected void storeSizeAndLocationSettings()
Stores dialog size and location as well as settings from the current SignaturepartBean.

Overrides:
storeSizeAndLocationSettings in class WizardDialogSettingsManager