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.
- 
Field Summary
- 
Constructor SummaryConstructors Constructor Description BasicFileView()Constructs aBasicFileView.
- 
Method SummaryModifier and Type Method Description voidcacheIcon(File f, Icon i)Caches an icon for a file.voidclearIconCache()Clears the icon cache.IcongetCachedIcon(File f)Returns the cached icon for the file.BooleanisHidden(File f)Returns whether or not a file is hidden.Methods declared in class javax.swing.filechooser.FileViewgetDescription, getIcon, getName, getTypeDescription, isTraversable
- 
Field Details- 
iconCacheThe icon cache
 
- 
- 
Constructor Details- 
BasicFileViewpublic BasicFileView()Constructs aBasicFileView.
 
- 
- 
Method Details- 
clearIconCachepublic void clearIconCache()Clears the icon cache.
- 
getCachedIconReturns the cached icon for the file.- Parameters:
- f- the file
- Returns:
- the cached icon for the file
 
- 
cacheIconCaches an icon for a file.- Parameters:
- f- the file
- i- the icon
 
- 
isHiddenReturns whether or not a file is hidden.- Parameters:
- f- the file
- Returns:
- whether or not a file is hidden
 
 
-