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 TypeMethodDescriptionvoidCaches an icon for a file.voidClears 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:
getDescriptionin classFileView- Parameters:
f- aFileobject- Returns:
- a
Stringcontaining a description of the file ornullif it is not available.
-
getTypeDescription
A human readable description of the type of the file. For example, ajpgfile might have a type description of: "A JPEG Compressed Image File"- Overrides:
getTypeDescriptionin classFileView- Parameters:
f- aFileobject- Returns:
- a
Stringcontaining a description of the type of the file ornullif it is not available .
-
getCachedIcon
-
cacheIcon
-
getIcon
-
isHidden
-