- java.lang.Object
-
- javax.swing.filechooser.FileView
-
- javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView
-
- Enclosing class:
- BasicFileChooserUI
protected class BasicFileChooserUI.BasicFileView extends FileView
一个基本的文件视图。
-
-
构造方法摘要
构造方法 Constructor 描述 BasicFileView()构造一个BasicFileView。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 voidcacheIcon(File f, Icon i)缓存文件的图标。voidclearIconCache()清除图标缓存。IcongetCachedIcon(File f)返回文件的缓存图标。StringgetDescription(File f)该文件的人类可读描述。IcongetIcon(File f)在JFileChooser中代表此文件的JFileChooser。StringgetName(File f)文件的名称。StringgetTypeDescription(File f)对文件类型的可读描述。BooleanisHidden(File f)返回是否隐藏文件。-
Methods inherited from class javax.swing.filechooser.FileView
isTraversable
-
-
-
-
方法详细信息
-
clearIconCache
public void clearIconCache()
清除图标缓存。
-
getDescription
public String getDescription(File f)
该文件的人类可读描述。 例如,名为jag.jpg的文件可能有一个描述:“James Gosling的脸的JPEG图像文件”。- 重写:
-
getDescription在FileView - 参数
-
f- 一个File对象 - 结果
-
一个
String包含文件的描述或null如果它不可用)。
-
getTypeDescription
public String getTypeDescription(File f)
对文件类型的可读描述。 例如,jpg文件可能具有以下类型描述:“JPEG压缩图像文件”- 重写:
-
getTypeDescription在FileView - 参数
-
f- 一个File对象 - 结果
-
一个
String包含文件类型的描述或null如果不可用)。
-
-