|
TrueZIP File* 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileSystemView
de.schlichtherle.truezip.file.swing.TDecoratingFileSystemView
de.schlichtherle.truezip.file.swing.TFileSystemView
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class TFileSystemView
A custom file system view required to browse archive files like (virtual)
directories with a JFileChooser.
This class is used by TFileTreeCellRenderer
to render files and directories in a TFileTree.
| Field Summary | |
|---|---|
private TArchiveDetector |
archiveDetector
Maybe null - uses default then. |
| Fields inherited from class de.schlichtherle.truezip.file.swing.TDecoratingFileSystemView |
|---|
delegate |
| Constructor Summary | |
|---|---|
TFileSystemView()
|
|
TFileSystemView(FileSystemView fileSystemView)
|
|
TFileSystemView(FileSystemView fileSystemView,
TArchiveDetector archiveDetector)
|
|
| Method Summary | |
|---|---|
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)
Ensures that the returned file object is an instance of File,
not TFile. |
protected TFile |
wrap(File file)
Ensures that the returned file object is an instance of TFile. |
| Methods inherited from class de.schlichtherle.truezip.file.swing.TDecoratingFileSystemView |
|---|
createFileSystemRoot, getDefaultDirectory, getHomeDirectory, getRoots, toString |
| Methods inherited from class javax.swing.filechooser.FileSystemView |
|---|
getFileSystemView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@CheckForNull private TArchiveDetector archiveDetector
| Constructor Detail |
|---|
public TFileSystemView()
public TFileSystemView(FileSystemView fileSystemView)
public TFileSystemView(FileSystemView fileSystemView,
@CheckForNull
TArchiveDetector archiveDetector)
| Method Detail |
|---|
@CheckForNull public TArchiveDetector getArchiveDetector()
public void setArchiveDetector(@CheckForNull
TArchiveDetector archiveDetector)
archiveDetector - the archive detector to use.protected TFile wrap(File file)
TFile.
protected File unwrap(File file)
File,
not TFile.
public boolean isRoot(File file)
isRoot in class TDecoratingFileSystemViewpublic Boolean isTraversable(File file)
isTraversable in class TDecoratingFileSystemViewpublic String getSystemDisplayName(File file)
getSystemDisplayName in class TDecoratingFileSystemViewpublic String getSystemTypeDescription(File file)
getSystemTypeDescription in class TDecoratingFileSystemViewpublic Icon getSystemIcon(File file)
getSystemIcon in class TDecoratingFileSystemView
public boolean isParent(File folder,
File file)
isParent in class TDecoratingFileSystemView
public File getChild(File parent,
String child)
getChild in class TDecoratingFileSystemViewpublic boolean isFileSystem(File file)
isFileSystem in class TDecoratingFileSystemView
public File createNewFolder(File parent)
throws IOException
createNewFolder in class TDecoratingFileSystemViewIOExceptionpublic boolean isHiddenFile(File file)
isHiddenFile in class TDecoratingFileSystemViewpublic boolean isFileSystemRoot(File file)
isFileSystemRoot in class TDecoratingFileSystemViewpublic boolean isDrive(File file)
isDrive in class TDecoratingFileSystemViewpublic boolean isFloppyDrive(File file)
isFloppyDrive in class TDecoratingFileSystemViewpublic boolean isComputerNode(File file)
isComputerNode in class TDecoratingFileSystemView
public File createFileObject(File dir,
String str)
createFileObject in class TDecoratingFileSystemViewpublic File createFileObject(String str)
createFileObject in class TDecoratingFileSystemView
@Nullable
public File createFileObject(@CheckForNull
File file)
public File[] getFiles(File dir,
boolean useFileHiding)
getFiles in class TDecoratingFileSystemViewpublic File getParentDirectory(File file)
getParentDirectory in class TDecoratingFileSystemView
|
TrueZIP File* 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||