01: /**
02: * Created on Dec 2, 2004
03: *
04: * @author karthikeyanr
05: *
06: */package wizard.action;
07:
08: import java.awt.event.ActionEvent;
09:
10: import javax.swing.AbstractAction;
11:
12: import wizard.helper.ResourceBundleManager;
13: import wizard.ui.AbstractWizard;
14:
15: public class CancelWizardAction extends AbstractAction {
16: private AbstractWizard dialog;
17:
18: public CancelWizardAction(AbstractWizard dialog) {
19: super (ResourceBundleManager.getInstance().getString(
20: "cancel.label"));
21: this .dialog = dialog;
22: }
23:
24: public void actionPerformed(ActionEvent actionEvent) {
25: if (dialog != null) {
26: dialog.setVisible(false);
27: dialog.dispose();
28: }
29: }
30: }
|