Class BasicFileChooserUI.BasicFileView
java.lang.Object
javax.swing.filechooser.FileView
javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView
- Enclosing class:
BasicFileChooserUI
A basic file view.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Caches an icon for a file.void
Clears the icon cache.Returns the cached icon for the file.A human readable description of the file.The icon that represents this file in theJFileChooser
.The name of the file.A human readable description of the type of the file.Returns whether or not a file is hidden.Methods inherited from class FileView
isTraversable
-
Field Details
-
iconCache
-
-
Constructor Details
-
BasicFileView
public BasicFileView()Constructs aBasicFileView
.
-
-
Method Details
-
clearIconCache
public void clearIconCache()Clears the icon cache. -
getName
-
getDescription
A human readable description of the file. For example, a file named jag.jpg might have a description that read: "A JPEG image file of James Gosling's face".- Overrides:
getDescription
in classFileView
- Parameters:
f
- aFile
object- Returns:
- a
String
containing a description of the file ornull
if it is not available.
-
getTypeDescription
A human readable description of the type of the file. For example, ajpg
file might have a type description of: "A JPEG Compressed Image File"- Overrides:
getTypeDescription
in classFileView
- Parameters:
f
- aFile
object- Returns:
- a
String
containing a description of the type of the file ornull
if it is not available .
-
getCachedIcon
-
cacheIcon
-
getIcon
-
isHidden
-