43 |
|
|
44 |
|
|
45 |
/** |
/** |
46 |
* DOCUMENT ME! |
* A concrete implementation of {@link FileSystemView} that is appropriate for |
47 |
|
* Unix-like systems. |
48 |
|
* |
49 |
|
* @see FileSystemView#getFileSystemView() |
50 |
*/ |
*/ |
51 |
class UnixFileSystemView extends FileSystemView |
class UnixFileSystemView extends FileSystemView |
52 |
{ |
{ |
53 |
/** DOCUMENT ME! */ |
/** The default name for new folders. */ |
54 |
private static final String NEW_FOLDER_NAME = "NewFolder"; |
private static final String NEW_FOLDER_NAME = "NewFolder"; |
55 |
|
|
56 |
/** |
/** |
57 |
* DOCUMENT ME! |
* Creates a new folder with a unique name in the specified directory and |
58 |
|
* returns a {@link File} object representing the new directory. The name |
59 |
|
* of the new folder is <code>NewFolder</code> or, if a directory or file |
60 |
|
* with that name already exists, <code>NewFolder.n</code> where |
61 |
|
* <code>n</code> is the lowest integer greater than zero that results in |
62 |
|
* a unique directory name. |
63 |
* |
* |
64 |
* @param containingDir DOCUMENT ME! |
* @param containingDir the directory to contain the new folder |
65 |
|
* (<code>null</code> not permitted). |
66 |
* |
* |
67 |
* @return DOCUMENT ME! |
* @return A {@link File} object representing the new directory. |
68 |
* |
* |
69 |
* @throws IOException DOCUMENT ME! |
* @throws IOException if an exception occurs while creating the new |
70 |
|
* directory. |
71 |
*/ |
*/ |
72 |
public File createNewFolder(File containingDir) throws IOException |
public File createNewFolder(File containingDir) throws IOException |
73 |
{ |
{ |
92 |
} |
} |
93 |
|
|
94 |
/** |
/** |
95 |
* DOCUMENT ME! |
* Returns an array containing the file system root. |
96 |
* |
* |
97 |
* @return DOCUMENT ME! |
* @return An array containing the file system root. |
98 |
*/ |
*/ |
99 |
public File[] getRoots() |
public File[] getRoots() |
100 |
{ |
{ |
102 |
} |
} |
103 |
|
|
104 |
/** |
/** |
105 |
* DOCUMENT ME! |
* Returns the name of a file as it would be displayed by the underlying |
106 |
|
* system. This method is NOT YET IMPLEMENTED. |
107 |
* |
* |
108 |
* @param f DOCUMENT ME! |
* @param f the file. |
109 |
* |
* |
110 |
* @return DOCUMENT ME! |
* @return <code>null</code>. |
111 |
*/ |
*/ |
112 |
public String getSystemDisplayName(File f) |
public String getSystemDisplayName(File f) |
113 |
{ |
{ |
116 |
} |
} |
117 |
|
|
118 |
/** |
/** |
119 |
* DOCUMENT ME! |
* Returns the icon that would be displayed for the given file by the |
120 |
|
* underlying system. This method is NOT YET IMPLEMENTED. |
121 |
* |
* |
122 |
* @param f DOCUMENT ME! |
* @param f the file. |
123 |
* |
* |
124 |
* @return DOCUMENT ME! |
* @return <code>null</code>. |
125 |
*/ |
*/ |
126 |
public Icon getSystemIcon(File f) |
public Icon getSystemIcon(File f) |
127 |
{ |
{ |
130 |
} |
} |
131 |
|
|
132 |
/** |
/** |
133 |
* DOCUMENT ME! |
* Returns the description of a file that would be displayed by the |
134 |
|
* underlying system. This method is NOT YET IMPLEMENTED. |
135 |
* |
* |
136 |
* @param f DOCUMENT ME! |
* @param f the file. |
137 |
* |
* |
138 |
* @return DOCUMENT ME! |
* @return <code>null</code>. |
139 |
*/ |
*/ |
140 |
public String getSystemTypeDescription(File f) |
public String getSystemTypeDescription(File f) |
141 |
{ |
{ |