- java.lang.Object
-
- javax.swing.filechooser.FileView
-
- javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView
-
- Enclosing class:
- BasicFileChooserUI
protected class BasicFileChooserUI.BasicFileView extends FileView
A basic file view.
-
-
Constructor Summary
Constructors Constructor Description BasicFileView()
Constructs aBasicFileView
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cacheIcon(File f, Icon i)
Caches an icon for a file.void
clearIconCache()
Clears the icon cache.Icon
getCachedIcon(File f)
Returns the cached icon for the file.Boolean
isHidden(File f)
Returns whether or not a file is hidden.-
Methods declared in class javax.swing.filechooser.FileView
getDescription, getIcon, getName, getTypeDescription, isTraversable
-
-
-
-
Method Detail
clearIconCache
public void clearIconCache()
Clears the icon cache.
getCachedIcon
public Icon getCachedIcon(File f)
Returns the cached icon for the file.- Parameters:
f
- the file- Returns:
- the cached icon for the file
cacheIcon
public void cacheIcon(File f, Icon i)
Caches an icon for a file.- Parameters:
f
- the filei
- the icon
-