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)
该文件的人类可读描述。
|
Icon |
getIcon(File f)
代表这个文件的图标在
JFileChooser 。
|
String |
getName(File f)
文件的名称。
|
String |
getTypeDescription(File f)
对文件类型的可读描述。
|
Boolean |
isHidden(File f) |
isTraversablepublic void clearIconCache()
public String getDescription(File f)
FileView
getDescription在
FileView
public String getTypeDescription(File f)
FileView
jpg文件可能具有以下类型描述:“JPEG压缩图像文件”
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, 2014, Oracle and/or its affiliates. All rights reserved.