Package repast.simphony.ui.plugin.editor
Class OptionsContentWizardStepAdapter
java.lang.Object
repast.simphony.ui.plugin.editor.OptionsContentWizardStepAdapter
- All Implemented Interfaces:
OptionsDialogContent
Adapts a PanelWizardStep to OptionsDialogContent. This allows a panel wizard step
to be used in an options dialog.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionOptionsContentWizardStepAdapter
(org.pietschy.wizard.Wizard wizard, org.pietschy.wizard.PanelWizardStep step) Creates an OptionsContentWizardStepAdapter for the specified wizard step. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply()
Invoked when the apply button is pressed.void
cancel()
Invoked when the cancel button is pressed.getPanel()
Gets the panel to be shown in the dialog.void
ok()
Invoked when ok button is pressed.void
selected()
Invoked when this OptionsDialogContent is selected.
-
Constructor Details
-
OptionsContentWizardStepAdapter
public OptionsContentWizardStepAdapter(org.pietschy.wizard.Wizard wizard, org.pietschy.wizard.PanelWizardStep step) Creates an OptionsContentWizardStepAdapter for the specified wizard step.- Parameters:
step
-
-
-
Method Details
-
apply
Invoked when the apply button is pressed. This calls step.applyState()- Specified by:
apply
in interfaceOptionsDialogContent
- Throws:
InvalidStateException
- if the apply fails.
-
cancel
public void cancel()Invoked when the cancel button is pressed.- Specified by:
cancel
in interfaceOptionsDialogContent
-
getPanel
Gets the panel to be shown in the dialog.- Specified by:
getPanel
in interfaceOptionsDialogContent
- Returns:
- the panel to be shown in the dialog.
-
ok
Invoked when ok button is pressed.- Specified by:
ok
in interfaceOptionsDialogContent
- Throws:
InvalidStateException
- if the action taken fails.
-
selected
public void selected()Invoked when this OptionsDialogContent is selected.- Specified by:
selected
in interfaceOptionsDialogContent
-