public class VirtualFileSystemView
extends javax.swing.filechooser.FileSystemView
Constructor and Description |
---|
VirtualFileSystemView(java.nio.file.Path base,
com.dropbox.core.v2.DbxClientV2 client) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
createFileObject(java.io.File dir,
java.lang.String filename) |
java.io.File |
createFileObject(java.lang.String path) |
protected java.io.File |
createFileSystemRoot(java.io.File f) |
java.io.File |
createNewFolder(java.io.File containingDir) |
java.io.File |
getChild(java.io.File parent,
java.lang.String fileName) |
java.io.File |
getDefaultDirectory() |
java.io.File[] |
getFiles(java.io.File dir,
boolean useFileHiding) |
java.io.File |
getHomeDirectory() |
java.io.File |
getParentDirectory(java.io.File dir) |
java.io.File[] |
getRoots() |
java.lang.String |
getSystemDisplayName(java.io.File f) |
javax.swing.Icon |
getSystemIcon(java.io.File f) |
java.lang.String |
getSystemTypeDescription(java.io.File f) |
boolean |
isComputerNode(java.io.File dir) |
boolean |
isDrive(java.io.File dir) |
boolean |
isFileSystem(java.io.File f) |
boolean |
isFileSystemRoot(java.io.File dir) |
boolean |
isFloppyDrive(java.io.File dir) |
boolean |
isHiddenFile(java.io.File f) |
boolean |
isParent(java.io.File folder,
java.io.File file) |
boolean |
isRoot(java.io.File f) |
public VirtualFileSystemView(java.nio.file.Path base, com.dropbox.core.v2.DbxClientV2 client)
protected java.io.File createFileSystemRoot(java.io.File f)
createFileSystemRoot
in class javax.swing.filechooser.FileSystemView
public boolean isComputerNode(java.io.File dir)
isComputerNode
in class javax.swing.filechooser.FileSystemView
public boolean isFloppyDrive(java.io.File dir)
isFloppyDrive
in class javax.swing.filechooser.FileSystemView
public boolean isDrive(java.io.File dir)
isDrive
in class javax.swing.filechooser.FileSystemView
public javax.swing.Icon getSystemIcon(java.io.File f)
getSystemIcon
in class javax.swing.filechooser.FileSystemView
public java.lang.String getSystemTypeDescription(java.io.File f)
getSystemTypeDescription
in class javax.swing.filechooser.FileSystemView
public java.lang.String getSystemDisplayName(java.io.File f)
getSystemDisplayName
in class javax.swing.filechooser.FileSystemView
public java.io.File getParentDirectory(java.io.File dir)
getParentDirectory
in class javax.swing.filechooser.FileSystemView
public java.io.File[] getFiles(java.io.File dir, boolean useFileHiding)
getFiles
in class javax.swing.filechooser.FileSystemView
public java.io.File createFileObject(java.lang.String path)
createFileObject
in class javax.swing.filechooser.FileSystemView
public java.io.File createFileObject(java.io.File dir, java.lang.String filename)
createFileObject
in class javax.swing.filechooser.FileSystemView
public java.io.File getDefaultDirectory()
getDefaultDirectory
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 boolean isFileSystemRoot(java.io.File dir)
isFileSystemRoot
in class javax.swing.filechooser.FileSystemView
public boolean isHiddenFile(java.io.File f)
isHiddenFile
in class javax.swing.filechooser.FileSystemView
public boolean isFileSystem(java.io.File f)
isFileSystem
in class javax.swing.filechooser.FileSystemView
public java.io.File getChild(java.io.File parent, java.lang.String fileName)
getChild
in class javax.swing.filechooser.FileSystemView
public boolean isParent(java.io.File folder, java.io.File file)
isParent
in class javax.swing.filechooser.FileSystemView
public boolean isRoot(java.io.File f)
isRoot
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