public abstract class TDecoratingFileSystemView
extends javax.swing.filechooser.FileSystemView
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.filechooser.FileSystemView |
fsv
The decorated file system view.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TDecoratingFileSystemView(javax.swing.filechooser.FileSystemView fsv)
Creates a new decorating file system view.
|
| 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) |
java.lang.Boolean |
isTraversable(java.io.File f) |
java.lang.String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
protected final javax.swing.filechooser.FileSystemView fsv
protected TDecoratingFileSystemView(javax.swing.filechooser.FileSystemView fsv)
fsv - the file system view to decorate.public boolean isRoot(java.io.File f)
isRoot in class javax.swing.filechooser.FileSystemViewpublic java.lang.Boolean isTraversable(java.io.File f)
isTraversable in class javax.swing.filechooser.FileSystemViewpublic java.lang.String getSystemDisplayName(java.io.File f)
getSystemDisplayName in class javax.swing.filechooser.FileSystemViewpublic java.lang.String getSystemTypeDescription(java.io.File f)
getSystemTypeDescription in class javax.swing.filechooser.FileSystemViewpublic javax.swing.Icon getSystemIcon(java.io.File f)
getSystemIcon in class javax.swing.filechooser.FileSystemViewpublic boolean isParent(java.io.File folder,
java.io.File file)
isParent in class javax.swing.filechooser.FileSystemViewpublic java.io.File getChild(java.io.File parent,
java.lang.String fileName)
getChild in class javax.swing.filechooser.FileSystemViewpublic boolean isFileSystem(java.io.File f)
isFileSystem 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.IOExceptionpublic boolean isHiddenFile(java.io.File f)
isHiddenFile in class javax.swing.filechooser.FileSystemViewpublic boolean isFileSystemRoot(java.io.File dir)
isFileSystemRoot in class javax.swing.filechooser.FileSystemViewpublic boolean isDrive(java.io.File dir)
isDrive in class javax.swing.filechooser.FileSystemViewpublic boolean isFloppyDrive(java.io.File dir)
isFloppyDrive in class javax.swing.filechooser.FileSystemViewpublic boolean isComputerNode(java.io.File dir)
isComputerNode in class javax.swing.filechooser.FileSystemViewpublic java.io.File[] getRoots()
getRoots in class javax.swing.filechooser.FileSystemViewpublic java.io.File getHomeDirectory()
getHomeDirectory in class javax.swing.filechooser.FileSystemViewpublic java.io.File getDefaultDirectory()
getDefaultDirectory in class javax.swing.filechooser.FileSystemViewpublic java.io.File createFileObject(java.io.File dir,
java.lang.String filename)
createFileObject in class javax.swing.filechooser.FileSystemViewpublic java.io.File createFileObject(java.lang.String path)
createFileObject in class javax.swing.filechooser.FileSystemViewpublic java.io.File[] getFiles(java.io.File dir,
boolean useFileHiding)
getFiles in class javax.swing.filechooser.FileSystemViewpublic java.io.File getParentDirectory(java.io.File dir)
getParentDirectory in class javax.swing.filechooser.FileSystemViewprotected java.io.File createFileSystemRoot(java.io.File f)
The implementation in the class TDecoratingFileSystemView
determines if the delegate is an instance of this class.
If this is true, then this method forwards the call to the delegate.
Otherwise, the implementation of the super class is called.
createFileSystemRoot in class javax.swing.filechooser.FileSystemViewpublic java.lang.String toString()
toString in class java.lang.Object