BasicFileChooserUI
protected class BasicFileChooserUI.BasicFileView extends FileView
Modifier and Type | Field | Description |
---|---|---|
protected Hashtable |
iconCache |
The icon cache |
Constructor | Description |
---|---|
BasicFileView() |
Constructs a BasicFileView . |
Modifier and Type | Method | Description |
---|---|---|
void |
cacheIcon |
Caches an icon for a file. |
void |
clearIconCache() |
Clears the icon cache. |
Icon |
getCachedIcon |
Returns the cached icon for the file. |
Boolean |
isHidden |
Returns whether or not a file is hidden. |
getDescription, getIcon, getName, getTypeDescription, isTraversable
protected Hashtable<File,Icon> iconCache
public BasicFileView()
BasicFileView
.public void clearIconCache()
public Icon getCachedIcon(File f)
f
- the filepublic void cacheIcon(File f, Icon i)
f
- the filei
- the iconpublic Boolean isHidden(File f)
f
- the file
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/basic/BasicFileChooserUI.BasicFileView.html