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(FileView fv)
Creates a new archive enabled file view.
|
Modifier and Type | Method and Description |
---|---|
Icon |
getIcon(File file) |
String |
getTypeDescription(File file) |
Boolean |
isTraversable(File file) |
getDescription, getName, toString
public TFileView(@CheckForNull FileView fv)
fv
- 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 TDecoratingFileView
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.