public class TFileSystemView extends TDecoratingFileSystemView
JFileChooser.
This class is used by TFileTreeCellRenderer
to render files and directories in a TFileTree.delegate| Constructor and Description |
|---|
TFileSystemView() |
TFileSystemView(FileSystemView fileSystemView) |
TFileSystemView(FileSystemView fileSystemView,
TArchiveDetector archiveDetector) |
| Modifier and Type | Method and Description |
|---|---|
File |
createFileObject(File file)
Creates a ZIP enabled file where necessary only,
otherwise the file is simply returned.
|
File |
createFileObject(File dir,
String str)
Creates a ZIP enabled file where necessary only,
otherwise the file system view delegate is used to create the file.
|
File |
createFileObject(String str)
Creates a ZIP enabled file where necessary only,
otherwise the file system view delegate is used to create the file.
|
File |
createNewFolder(File parent) |
TArchiveDetector |
getArchiveDetector()
Returns the archive detector to use.
|
File |
getChild(File parent,
String child) |
File[] |
getFiles(File dir,
boolean useFileHiding) |
File |
getParentDirectory(File file) |
String |
getSystemDisplayName(File file) |
Icon |
getSystemIcon(File file) |
String |
getSystemTypeDescription(File file) |
boolean |
isComputerNode(File file) |
boolean |
isDrive(File file) |
boolean |
isFileSystem(File file) |
boolean |
isFileSystemRoot(File file) |
boolean |
isFloppyDrive(File file) |
boolean |
isHiddenFile(File file) |
boolean |
isParent(File folder,
File file) |
boolean |
isRoot(File file) |
Boolean |
isTraversable(File file) |
void |
setArchiveDetector(TArchiveDetector archiveDetector)
Sets the archive detector to use.
|
protected File |
unwrap(File file)
|
protected TFile |
wrap(File file)
Ensures that the returned file object is an instance of
TFile. |
createFileSystemRoot, getDefaultDirectory, getHomeDirectory, getRoots, toStringgetFileSystemViewpublic TFileSystemView()
public TFileSystemView(FileSystemView fileSystemView)
public TFileSystemView(FileSystemView fileSystemView, @CheckForNull TArchiveDetector archiveDetector)
@Nullable public File createFileObject(@CheckForNull File file)
public File createFileObject(File dir, String str)
createFileObject in class TDecoratingFileSystemViewpublic File createFileObject(String str)
createFileObject in class TDecoratingFileSystemViewpublic File createNewFolder(File parent) throws IOException
createNewFolder in class TDecoratingFileSystemViewIOException@CheckForNull public TArchiveDetector getArchiveDetector()
public File getChild(File parent, String child)
getChild in class TDecoratingFileSystemViewpublic File[] getFiles(File dir, boolean useFileHiding)
getFiles in class TDecoratingFileSystemViewpublic File getParentDirectory(File file)
getParentDirectory in class TDecoratingFileSystemViewpublic String getSystemDisplayName(File file)
getSystemDisplayName in class TDecoratingFileSystemViewpublic Icon getSystemIcon(File file)
getSystemIcon in class TDecoratingFileSystemViewpublic String getSystemTypeDescription(File file)
getSystemTypeDescription in class TDecoratingFileSystemViewpublic boolean isComputerNode(File file)
isComputerNode in class TDecoratingFileSystemViewpublic boolean isDrive(File file)
isDrive in class TDecoratingFileSystemViewpublic boolean isFileSystem(File file)
isFileSystem in class TDecoratingFileSystemViewpublic boolean isFileSystemRoot(File file)
isFileSystemRoot in class TDecoratingFileSystemViewpublic boolean isFloppyDrive(File file)
isFloppyDrive in class TDecoratingFileSystemViewpublic boolean isHiddenFile(File file)
isHiddenFile in class TDecoratingFileSystemViewpublic boolean isParent(File folder, File file)
isParent in class TDecoratingFileSystemViewpublic boolean isRoot(File file)
isRoot in class TDecoratingFileSystemViewpublic Boolean isTraversable(File file)
isTraversable in class TDecoratingFileSystemViewpublic void setArchiveDetector(@CheckForNull TArchiveDetector archiveDetector)
archiveDetector - the archive detector to use.Copyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.