protected class BasicFileChooserUI.BasicFileView extends FileView
Modifier and Type | Field and Description |
---|---|
protected Hashtable<File,Icon> |
iconCache |
Constructor and Description |
---|
BasicFileView() |
Modifier and Type | Method and Description |
---|---|
void |
cacheIcon(File f,
Icon i) |
void |
clearIconCache() |
Icon |
getCachedIcon(File f) |
String |
getDescription(File f)
A human readable description of the file.
|
Icon |
getIcon(File f)
The icon that represents this file in the
JFileChooser . |
String |
getName(File f)
The name of the file.
|
String |
getTypeDescription(File f)
A human readable description of the type of the file.
|
Boolean |
isHidden(File f) |
isTraversable
public void clearIconCache()
public String getName(File f)
FileView
f.getName()
.public String getDescription(File f)
FileView
getDescription
in class FileView
public String getTypeDescription(File f)
FileView
jpg
file might have a type description of:
"A JPEG Compressed Image File"getTypeDescription
in class FileView
public Icon getIcon(File f)
FileView
JFileChooser
. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.