public class ParentDrivenFileSystemView
extends javax.swing.filechooser.FileSystemView
| Constructor and Description |
|---|
ParentDrivenFileSystemView(java.io.File rootDirectory,
boolean restricted)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
createNewFolder(java.io.File containingDir) |
java.io.File |
getHomeDirectory() |
java.io.File |
getParentDirectory(java.io.File dir) |
java.io.File[] |
getRoots() |
createFileObject, createFileObject, createFileSystemRoot, getChild, getDefaultDirectory, getFiles, getFileSystemView, getSystemDisplayName, getSystemIcon, getSystemTypeDescription, isComputerNode, isDrive, isFileSystem, isFileSystemRoot, isFloppyDrive, isHiddenFile, isParent, isRoot, isTraversablepublic ParentDrivenFileSystemView(java.io.File rootDirectory,
boolean restricted)
rootDirectory - a File instance that represents an existing directoryrestricted - a boolean, if true the JFileChooser instance will be restricted to the root directorypublic java.io.File getParentDirectory(java.io.File dir)
getParentDirectory in class javax.swing.filechooser.FileSystemViewpublic java.io.File getHomeDirectory()
getHomeDirectory in class javax.swing.filechooser.FileSystemViewpublic java.io.File[] getRoots()
getRoots in class javax.swing.filechooser.FileSystemViewpublic java.io.File createNewFolder(java.io.File containingDir)
throws java.io.IOException
createNewFolder in class javax.swing.filechooser.FileSystemViewjava.io.IOException