01: package com.memoire.vainstall.tui;
02:
03: import com.memoire.vainstall.*;
04:
05: public class TuiDefaultStep implements VAStep, Cloneable {
06: private AbstractInstall setup_;
07:
08: public TuiDefaultStep() {
09: super ();
10: setup_ = null;
11: }
12:
13: public void setInstaller(AbstractInstall setup) {
14: setup_ = setup;
15: }
16:
17: protected AbstractInstall getInstaller() {
18: return setup_;
19: }
20:
21: public void againAction() {
22: setup_.redoStep();
23: }
24:
25: public void backAction() {
26: setup_.previousStep();
27: }
28:
29: public void nextAction() {
30: setup_.nextStep();
31: }
32:
33: public void cancelAction() {
34: TuiWizard.clear();
35: TuiWizard.title();
36: TuiWizard.println(VAGlobals
37: .i18n("TuiDefaultStep_CancelInstallation"));
38: TuiWizard.separator();
39: for (int i = 4; i <= 22; i++)
40: TuiWizard.println("");
41: TuiWizard.info();
42: TuiWizard.println(VAGlobals.i18n("UI_AbortQuestion"));
43: TuiWizard.separator();
44: if (TuiWizard.confirm())
45: setup_.cancel();
46: else
47: setup_.redoStep();
48: }
49: }
|