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.
fv| Constructor and Description |
|---|
TFileView(javax.swing.filechooser.FileView fv)
Creates a new archive enabled file view.
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.Icon |
getIcon(java.io.File file) |
java.lang.String |
getTypeDescription(java.io.File file) |
java.lang.Boolean |
isTraversable(java.io.File file) |
getDescription, getName, toStringpublic TFileView(@CheckForNull
javax.swing.filechooser.FileView fv)
fv - The nullable file view to decorate.@Nullable public java.lang.String getTypeDescription(java.io.File file)
getTypeDescription in class TDecoratingFileView@Nullable public javax.swing.Icon getIcon(java.io.File file)
getIcon in class TDecoratingFileView@Nullable public java.lang.Boolean isTraversable(java.io.File file)
isTraversable in class TDecoratingFileView