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) |
isTraversable
public void clearIconCache()
public String getDescription(File f)
FileView
getDescription
方法重写,继承类
FileView
public String getTypeDescription(File f)
FileView
jpg
文件可能有一个类型的描述:“一个JPEG压缩图像文件”
getTypeDescription
方法重写,继承类
FileView
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.