public abstract class TDecoratingFileSystemView extends FileSystemView
| Modifier and Type | Field and Description |
|---|---|
protected FileSystemView |
delegate
The decorated file system view.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TDecoratingFileSystemView(FileSystemView fileSystemView)
Creates a new decorating file system view.
|
| Modifier and Type | Method and Description |
|---|---|
File |
createFileObject(File dir,
String filename) |
File |
createFileObject(String path) |
protected File |
createFileSystemRoot(File f) |
File |
createNewFolder(File containingDir) |
File |
getChild(File parent,
String fileName) |
File |
getDefaultDirectory() |
File[] |
getFiles(File dir,
boolean useFileHiding) |
File |
getHomeDirectory() |
File |
getParentDirectory(File dir) |
File[] |
getRoots() |
String |
getSystemDisplayName(File f) |
Icon |
getSystemIcon(File f) |
String |
getSystemTypeDescription(File f) |
boolean |
isComputerNode(File dir) |
boolean |
isDrive(File dir) |
boolean |
isFileSystem(File f) |
boolean |
isFileSystemRoot(File dir) |
boolean |
isFloppyDrive(File dir) |
boolean |
isHiddenFile(File f) |
boolean |
isParent(File folder,
File file) |
boolean |
isRoot(File f) |
Boolean |
isTraversable(File f) |
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
getFileSystemViewprotected final FileSystemView delegate
protected TDecoratingFileSystemView(FileSystemView fileSystemView)
fileSystemView - the file system view to decorate.public File createFileObject(File dir, String filename)
createFileObject in class FileSystemViewpublic File createFileObject(String path)
createFileObject in class FileSystemViewprotected File createFileSystemRoot(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 FileSystemViewpublic File createNewFolder(File containingDir) throws IOException
createNewFolder in class FileSystemViewIOExceptionpublic File getChild(File parent, String fileName)
getChild in class FileSystemViewpublic File getDefaultDirectory()
getDefaultDirectory in class FileSystemViewpublic File[] getFiles(File dir, boolean useFileHiding)
getFiles in class FileSystemViewpublic File getHomeDirectory()
getHomeDirectory in class FileSystemViewpublic File getParentDirectory(File dir)
getParentDirectory in class FileSystemViewpublic File[] getRoots()
getRoots in class FileSystemViewpublic String getSystemDisplayName(File f)
getSystemDisplayName in class FileSystemViewpublic Icon getSystemIcon(File f)
getSystemIcon in class FileSystemViewpublic String getSystemTypeDescription(File f)
getSystemTypeDescription in class FileSystemViewpublic boolean isComputerNode(File dir)
isComputerNode in class FileSystemViewpublic boolean isDrive(File dir)
isDrive in class FileSystemViewpublic boolean isFileSystem(File f)
isFileSystem in class FileSystemViewpublic boolean isFileSystemRoot(File dir)
isFileSystemRoot in class FileSystemViewpublic boolean isFloppyDrive(File dir)
isFloppyDrive in class FileSystemViewpublic boolean isHiddenFile(File f)
isHiddenFile in class FileSystemViewpublic boolean isParent(File folder, File file)
isParent in class FileSystemViewpublic boolean isRoot(File f)
isRoot in class FileSystemViewpublic Boolean isTraversable(File f)
isTraversable in class FileSystemViewCopyright © 2005–2018 Schlichtherle IT Services. All rights reserved.