gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / util / FolderSet.java @ 706
History | View | Annotate | Download (1.31 KB)
1 |
package org.gvsig.tools.util; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
import java.io.FileFilter; |
5 |
import java.io.FilenameFilter; |
6 |
import java.io.IOException; |
7 |
import java.util.Iterator; |
8 |
|
9 |
import org.gvsig.tools.observer.Observable; |
10 |
|
11 |
public interface FolderSet extends Observable { |
12 |
|
13 |
public interface FolderEntry { |
14 |
public File getFolder(); |
15 |
public String getLabel() ; |
16 |
} |
17 |
public void setDefaultFolder(File defaultFolder); |
18 |
|
19 |
public File getDefaultFolder(); |
20 |
|
21 |
public File asFile(); |
22 |
|
23 |
public void add(File folder); |
24 |
|
25 |
public void add(File folder, String description); |
26 |
|
27 |
public void clear(); |
28 |
|
29 |
public void remove(File folder); |
30 |
|
31 |
public void set(File folder); |
32 |
|
33 |
public Iterator iterator(); // over FolderEntry |
34 |
|
35 |
public File[] listFiles(); |
36 |
|
37 |
public File[] listFiles(FileFilter filter); |
38 |
|
39 |
public File[] listFiles(FilenameFilter filter); |
40 |
|
41 |
public String[] list(); |
42 |
|
43 |
public String[] list(FilenameFilter filter); |
44 |
|
45 |
public boolean isDirectory(); |
46 |
|
47 |
public boolean isFile(); |
48 |
|
49 |
public String getName(); |
50 |
|
51 |
public String getParent(); |
52 |
|
53 |
public File getParentFile(); |
54 |
|
55 |
public String getPath(); |
56 |
|
57 |
public File getCanonicalFile() throws IOException ; |
58 |
|
59 |
public String getCanonicalPath() throws IOException ; |
60 |
|
61 |
public boolean canRead(); |
62 |
|
63 |
public boolean canWrite(); |
64 |
|
65 |
public boolean exists() ; |
66 |
|
67 |
public File getAbsoluteFile(); |
68 |
|
69 |
public String getAbsolutePath(); |
70 |
} |