@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class TFileView extends TDecoratingFileView
TFile class and returns
custom icons and type descriptions if it's an archive file or an archive
entry.
Otherwise, the super class behaviour is used.
Note that this class accesses archive files lazily, i.e. it does not
eagerly check the true status with TFile.isDirectory() or similar
unless really necessary. This is to prevent dead locks between the Event
Dispatch Thread and the Basic L&F TFile Loading Threads which are forked
by JFileChooser.
| Modifier and Type | Field and Description |
|---|---|
private static String |
CLASS_NAME |
private static ResourceBundle |
resources |
delegate| Constructor and Description |
|---|
TFileView(FileView fileView)
Creates a new archive enabled file view.
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
getIcon(File file) |
String |
getTypeDescription(File file) |
(package private) static Icon |
icon(File file) |
private static Icon |
icon(TFile file) |
Boolean |
isTraversable(File file) |
private static boolean |
isTrueArchive(TFile file) |
private static boolean |
isTrueEntry(TFile file) |
(package private) static String |
typeDescription(File file) |
private static String |
typeDescription(TFile file) |
getDescription, getName, toStringprivate static final String CLASS_NAME
private static final ResourceBundle resources
public TFileView(@CheckForNull
FileView fileView)
fileView - The nullable file view to decorate.@Nullable public Icon getIcon(File file)
getIcon in class TDecoratingFileView@Nullable public String getTypeDescription(File file)
getTypeDescription in class TDecoratingFileView@Nullable public Boolean isTraversable(File file)
isTraversable in class TDecoratingFileViewprivate static boolean isTrueArchive(TFile file)
private static boolean isTrueEntry(TFile file)
Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.