Package repast.simphony.ui.plugin.editor
Class OptionsContentWizardStepAdapter
- java.lang.Object
-
- repast.simphony.ui.plugin.editor.OptionsContentWizardStepAdapter
-
- All Implemented Interfaces:
OptionsDialogContent
public class OptionsContentWizardStepAdapter extends Object implements 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
Constructors Constructor Description OptionsContentWizardStepAdapter(org.pietschy.wizard.Wizard wizard, org.pietschy.wizard.PanelWizardStep step)
Creates an OptionsContentWizardStepAdapter for the specified wizard step.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply()
Invoked when the apply button is pressed.void
cancel()
Invoked when the cancel button is pressed.JPanel
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.
-
-
-
Method Detail
-
apply
public void apply() throws InvalidStateException
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
public JPanel 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
public void ok() throws InvalidStateException
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
-
-