|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileSystemView
javax.swing.filechooser.WindowsFileSystemView
FileSystemView that handles some specific windows concepts.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.filechooser.FileSystemView |
FileSystemView.FileSystemRoot |
| Field Summary | |
private static String |
newFolderNextString
|
private static String |
newFolderString
|
| Fields inherited from class javax.swing.filechooser.FileSystemView |
genericFileSystemView, unixFileSystemView, windowsFileSystemView |
| Constructor Summary | |
(package private) |
WindowsFileSystemView()
|
| Method Summary | |
File |
createFileObject(String path)
Returns a File object constructed from the given path string. |
protected File |
createFileSystemRoot(File f)
Creates a new File object for f with correct
behavior for a file system root directory. |
File |
createNewFolder(File containingDir)
Creates a new folder with a default folder name. |
File |
getChild(File parent,
String fileName)
|
File |
getHomeDirectory()
|
String |
getSystemTypeDescription(File f)
Type description for a file, directory, or folder as it would be displayed in a system file browser. |
boolean |
isDrive(File dir)
Used by UI classes to decide whether to display a special icon for drives or partitions, e.g. a "hard disk" icon. |
boolean |
isFloppyDrive(File dir)
Used by UI classes to decide whether to display a special icon for a floppy disk. |
Boolean |
isTraversable(File f)
Returns true if the file (directory) can be visited. |
| Methods inherited from class javax.swing.filechooser.FileSystemView |
createFileObject, getDefaultDirectory, getFiles, getFileSystemView, getParentDirectory, getRoots, getShellFolder, getSystemDisplayName, getSystemIcon, isComputerNode, isFileSystem, isFileSystemRoot, isHiddenFile, isParent, isRoot |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final String newFolderString
private static final String newFolderNextString
| Constructor Detail |
WindowsFileSystemView()
| Method Detail |
public Boolean isTraversable(File f)
FileSystemView
isTraversable in class FileSystemViewf - the File
true if the file/directory can be traversed, otherwise falseJFileChooser.isTraversable(java.io.File),
FileView.isTraversable(java.io.File)
public File getChild(File parent,
String fileName)
getChild in class FileSystemViewparent - a File object repesenting a directory or special folderfileName - a name of a file or folder which exists in parent
new
File(parent, fileName) except when parent and child are both
special folders, in which case the File is a wrapper containing
a ShellFolder object.public String getSystemTypeDescription(File f)
getSystemTypeDescription in class FileSystemViewf - a File object
JFileChooser.getTypeDescription(java.io.File)public File getHomeDirectory()
getHomeDirectory in class FileSystemView
public File createNewFolder(File containingDir)
throws IOException
createNewFolder in class FileSystemViewIOExceptionpublic boolean isDrive(File dir)
FileSystemView
isDrive in class FileSystemViewdir - a directory
false alwayspublic boolean isFloppyDrive(File dir)
FileSystemView
isFloppyDrive in class FileSystemViewdir - a directory
false alwayspublic File createFileObject(String path)
createFileObject in class FileSystemViewprotected File createFileSystemRoot(File f)
FileSystemViewFile object for f with correct
behavior for a file system root directory.
createFileSystemRoot in class FileSystemViewf - a File object representing a file system root
directory, for example "/" on Unix or "C:\" on Windows.
File object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||