1 package com.memoire.vainstall.uui; 2 3 import java.io.*; 4 import com.memoire.vainstall.VAGlobals; 5 import com.memoire.vainstall.VAStep; 6 import com.memoire.vainstall.VAWizardInterface; 7 8 public class UuiWizard 9 implements VAWizardInterface { 11 private static UuiWizard UNIQUE_WIZARD=null; 12 13 private VAStep step_; 14 private int actions_; 15 16 protected UuiWizard() 17 { 18 super(); 19 init(); 20 } 21 22 24 protected void init() 25 { 26 } 27 28 30 public static VAWizardInterface createWizard() 31 { 32 if(UNIQUE_WIZARD==null) UNIQUE_WIZARD=new UuiWizard(); 33 else UNIQUE_WIZARD.init(); 34 return UNIQUE_WIZARD; 35 } 36 37 public void setActionEnabled(int _actions) 38 { 39 actions_=_actions; 40 } 41 42 public void setStep(VAStep _step) 43 { 44 step_=_step; 45 } 46 47 public void show() 48 { 49 while (true) { 50 step_.nextAction(); 51 } 52 } 53 54 public void dispose(boolean _confirm) 55 { 56 } 57 58 } 59 | Popular Tags |