JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf.basic
类 BasicFileChooserUI.BasicFileView

java.lang.Object
  继承者 javax.swing.filechooser.FileView
      继承者 javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView
正在封闭类:
BasicFileChooserUI

protected class BasicFileChooserUI.BasicFileView
extends FileView


字段摘要
protected  Hashtable<File,Icon> iconCache
           
 
构造方法摘要
BasicFileChooserUI.BasicFileView()
           
 
方法摘要
 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)
           
 
从类 javax.swing.filechooser.FileView 继承的方法
isTraversable
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

iconCache

protected Hashtable<File,Icon> iconCache
构造方法详细信息

BasicFileChooserUI.BasicFileView

public BasicFileChooserUI.BasicFileView()
方法详细信息

clearIconCache

public void clearIconCache()

getName

public String getName(File f)
从类 FileView 复制的描述
文件名称。通常此名称就是 f.getName()

覆盖:
FileView 中的 getName

getDescription

public String getDescription(File f)
从类 FileView 复制的描述
文件的可读描述。例如,名为 jag.jpg 的文件可能有这样一个描述:"A JPEG image file of James Gosling's face"。

覆盖:
FileView 中的 getDescription

getTypeDescription

public String getTypeDescription(File f)
从类 FileView 复制的描述
文件类型的可读描述。例如,jpg 文件可能有这样一个类型描述:"A JPEG Compressed Image File"

覆盖:
FileView 中的 getTypeDescription

getCachedIcon

public Icon getCachedIcon(File f)

cacheIcon

public void cacheIcon(File f,
                      Icon i)

getIcon

public Icon getIcon(File f)
从类 FileView 复制的描述
表示 JFileChooser 中此文件的图标。

覆盖:
FileView 中的 getIcon

isHidden

public Boolean isHidden(File f)

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only