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
ConstructorsConstructorDescriptionOptionsContentWizardStepAdapter(org.pietschy.wizard.Wizard wizard, org.pietschy.wizard.PanelWizardStep step) Creates an OptionsContentWizardStepAdapter for the specified wizard step. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Invoked when the apply button is pressed.voidcancel()Invoked when the cancel button is pressed.getPanel()Gets the panel to be shown in the dialog.voidok()Invoked when ok button is pressed.voidselected()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:
applyin interfaceOptionsDialogContent- Throws:
InvalidStateException- if the apply fails.
-
cancel
public void cancel()Invoked when the cancel button is pressed.- Specified by:
cancelin interfaceOptionsDialogContent
-
getPanel
Gets the panel to be shown in the dialog.- Specified by:
getPanelin interfaceOptionsDialogContent- Returns:
- the panel to be shown in the dialog.
-
ok
Invoked when ok button is pressed.- Specified by:
okin interfaceOptionsDialogContent- Throws:
InvalidStateException- if the action taken fails.
-
selected
public void selected()Invoked when this OptionsDialogContent is selected.- Specified by:
selectedin interfaceOptionsDialogContent
-