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.
|
getFileSystemView
protected final FileSystemView delegate
protected TDecoratingFileSystemView(FileSystemView fileSystemView)
fileSystemView
- the file system view to decorate.public File createFileObject(File dir, String filename)
createFileObject
in class FileSystemView
public File createFileObject(String path)
createFileObject
in class FileSystemView
protected 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 FileSystemView
public File createNewFolder(File containingDir) throws IOException
createNewFolder
in class FileSystemView
IOException
public File getChild(File parent, String fileName)
getChild
in class FileSystemView
public File getDefaultDirectory()
getDefaultDirectory
in class FileSystemView
public File[] getFiles(File dir, boolean useFileHiding)
getFiles
in class FileSystemView
public File getHomeDirectory()
getHomeDirectory
in class FileSystemView
public File getParentDirectory(File dir)
getParentDirectory
in class FileSystemView
public File[] getRoots()
getRoots
in class FileSystemView
public String getSystemDisplayName(File f)
getSystemDisplayName
in class FileSystemView
public Icon getSystemIcon(File f)
getSystemIcon
in class FileSystemView
public String getSystemTypeDescription(File f)
getSystemTypeDescription
in class FileSystemView
public boolean isComputerNode(File dir)
isComputerNode
in class FileSystemView
public boolean isDrive(File dir)
isDrive
in class FileSystemView
public boolean isFileSystem(File f)
isFileSystem
in class FileSystemView
public boolean isFileSystemRoot(File dir)
isFileSystemRoot
in class FileSystemView
public boolean isFloppyDrive(File dir)
isFloppyDrive
in class FileSystemView
public boolean isHiddenFile(File f)
isHiddenFile
in class FileSystemView
public boolean isParent(File folder, File file)
isParent
in class FileSystemView
public boolean isRoot(File f)
isRoot
in class FileSystemView
public Boolean isTraversable(File f)
isTraversable
in class FileSystemView
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.