01: package com.memoire.vainstall.uui;
02:
03: import java.io.*;
04: import com.memoire.vainstall.*;
05:
06: public class UuiDirectoryStep extends UuiDefaultStep implements
07: VADirectoryStep {
08: private String dir_ = null;
09:
10: public UuiDirectoryStep() {
11: }
12:
13: public void setDirectory(File _dir) {
14: dir_ = _dir.getAbsolutePath();
15: System.out.println("Directory is: " + dir_);
16: }
17:
18: public File getDirectory() {
19: return new File(dir_);
20: }
21:
22: public void roDirectory(File d) {
23: System.out.println("Error: "
24: + VAGlobals.i18n("Setup_NoWritableDirectory")
25: + d.getAbsolutePath() + "\n"
26: + VAGlobals.i18n("Setup_NoWritableDirectoryInfos"));
27: }
28:
29: public void rejectDirectory() {
30: System.out.println("Error: "
31: + VAGlobals.i18n("UI_NotChooseDirectory"));
32: }
33:
34: public boolean acceptDirectory() {
35: return true;
36: }
37: }
|