01: package com.memoire.vainstall.tui;
02:
03: import com.memoire.vainstall.*;
04:
05: public class TuiShortcutStep extends TuiDefaultStep implements
06: VAShortcutStep {
07: private boolean accept_ = false;
08:
09: public TuiShortcutStep() {
10: TuiWizard.clear();
11: TuiWizard.title();
12: TuiWizard.println(VAGlobals.i18n("TuiShortcutStep_Shortcuts"));
13: TuiWizard.separator();
14: TuiWizard.println("");
15:
16: switch (VAGlobals.OPERATION) {
17: case VAGlobals.UPDATE:
18: case VAGlobals.INSTALL:
19: TuiWizard.println(VAGlobals.i18n(
20: "TuiShortcutStep_PutEntryAndIcon",
21: new Object[] { VAGlobals.LINK_ENTRY_NAME }));
22: TuiWizard.println(VAGlobals
23: .i18n("TuiShortcutStep_WantShortcuts"));
24: break;
25: case VAGlobals.UNINSTALL:
26: TuiWizard.println(VAGlobals.i18n(
27: "TuiShortcutStep_RemoveEntriesAndIcon",
28: new Object[] { VAGlobals.LINK_ENTRY_NAME }));
29: TuiWizard.println("");
30: break;
31: default:
32: TuiWizard.println(VAGlobals.i18n("UI_Unknown"));
33: TuiWizard.println("");
34: TuiWizard.println("");
35: break;
36: }
37:
38: for (int i = 7; i <= 22; i++)
39: TuiWizard.println("");
40: TuiWizard.separator();
41: TuiWizard.info();
42: accept_ = TuiWizard.confirm();
43: TuiWizard.clear();
44: TuiWizard.title();
45: TuiWizard.println(VAGlobals.i18n("TuiShortcutStep_Shortcuts"));
46: TuiWizard.separator();
47: TuiWizard.println("");
48: if (accept_)
49: TuiWizard.println(VAGlobals
50: .i18n("TuiShortcutStep_WillCreate"));
51: else
52: TuiWizard.println(VAGlobals
53: .i18n("TuiShortcutStep_WillNotCreate"));
54: for (int i = 5; i < 22; i++)
55: TuiWizard.println("");
56: TuiWizard.info();
57: TuiWizard.println(VAGlobals.i18n("TuiShortcutStep_Continue"));
58: }
59:
60: public boolean isShortcutAccepted() {
61: return accept_;
62: }
63: }
|