01: package com.memoire.vainstall.uui;
02:
03: import java.io.*;
04: import com.memoire.vainstall.VAGlobals;
05: import com.memoire.vainstall.VAStep;
06: import com.memoire.vainstall.VAWizardInterface;
07:
08: public class UuiWizard implements VAWizardInterface // , ActionListener
09: {
10: private static UuiWizard UNIQUE_WIZARD = null;
11:
12: private VAStep step_;
13: private int actions_;
14:
15: protected UuiWizard() {
16: super ();
17: init();
18: }
19:
20: // PROTECTED
21:
22: protected void init() {
23: }
24:
25: // PUBLIC
26:
27: public static VAWizardInterface createWizard() {
28: if (UNIQUE_WIZARD == null)
29: UNIQUE_WIZARD = new UuiWizard();
30: else
31: UNIQUE_WIZARD.init();
32: return UNIQUE_WIZARD;
33: }
34:
35: public void setActionEnabled(int _actions) {
36: actions_ = _actions;
37: }
38:
39: public void setStep(VAStep _step) {
40: step_ = _step;
41: }
42:
43: public void show() {
44: while (true) {
45: step_.nextAction();
46: }
47: }
48:
49: public void dispose(boolean _confirm) {
50: }
51:
52: }
|