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, isTraversable
public 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.FileSystemView
public java.io.File getHomeDirectory()
getHomeDirectory
in class javax.swing.filechooser.FileSystemView
public java.io.File[] getRoots()
getRoots
in class javax.swing.filechooser.FileSystemView
public java.io.File createNewFolder(java.io.File containingDir) throws java.io.IOException
createNewFolder
in class javax.swing.filechooser.FileSystemView
java.io.IOException