JavaTM Platform
Standard Ed. 6

类 javax.swing.JFileChooser
的使用

使用 JFileChooser 的软件包
javax.swing.plaf 提供一个接口和许多抽象类,Swing 用它们来提供自己的可插入外观功能。 
javax.swing.plaf.basic 提供了根据基本外观构建的用户界面对象。 
javax.swing.plaf.metal 提供根据 Java 外观(曾经代称为 Metal)构建的用户界面对象,Java 外观是默认外观。 
javax.swing.plaf.multi 提供了组合两个或多个外观的用户界面对象。 
 

javax.swing.plaf 中 JFileChooser 的使用
 

参数类型为 JFileChooser 的 javax.swing.plaf 中的方法
abstract  void FileChooserUI.ensureFileIsVisible(JFileChooser fc, File f)
           
abstract  FileFilter FileChooserUI.getAcceptAllFileFilter(JFileChooser fc)
           
abstract  String FileChooserUI.getApproveButtonText(JFileChooser fc)
           
abstract  String FileChooserUI.getDialogTitle(JFileChooser fc)
           
abstract  FileView FileChooserUI.getFileView(JFileChooser fc)
           
abstract  void FileChooserUI.rescanCurrentDirectory(JFileChooser fc)
           
 

javax.swing.plaf.basic 中 JFileChooser 的使用
 

返回 JFileChooser 的 javax.swing.plaf.basic 中的方法
 JFileChooser BasicFileChooserUI.getFileChooser()
           
 

参数类型为 JFileChooser 的 javax.swing.plaf.basic 中的方法
protected  MouseListener BasicFileChooserUI.createDoubleClickListener(JFileChooser fc, JList list)
           
 ListSelectionListener BasicFileChooserUI.createListSelectionListener(JFileChooser fc)
           
 PropertyChangeListener BasicFileChooserUI.createPropertyChangeListener(JFileChooser fc)
           
 void BasicFileChooserUI.ensureFileIsVisible(JFileChooser fc, File f)
           
 FileFilter BasicFileChooserUI.getAcceptAllFileFilter(JFileChooser fc)
          返回默认接受所有文件过滤器
protected  JButton BasicFileChooserUI.getApproveButton(JFileChooser fc)
           
 int BasicFileChooserUI.getApproveButtonMnemonic(JFileChooser fc)
           
 String BasicFileChooserUI.getApproveButtonText(JFileChooser fc)
           
 String BasicFileChooserUI.getApproveButtonToolTipText(JFileChooser fc)
           
 String BasicFileChooserUI.getDialogTitle(JFileChooser fc)
          返回此对话框的标题
 FileView BasicFileChooserUI.getFileView(JFileChooser fc)
           
 void BasicFileChooserUI.installComponents(JFileChooser fc)
           
protected  void BasicFileChooserUI.installDefaults(JFileChooser fc)
           
protected  void BasicFileChooserUI.installIcons(JFileChooser fc)
           
protected  void BasicFileChooserUI.installListeners(JFileChooser fc)
           
protected  void BasicFileChooserUI.installStrings(JFileChooser fc)
           
 void BasicFileChooserUI.rescanCurrentDirectory(JFileChooser fc)
           
 void BasicFileChooserUI.uninstallComponents(JFileChooser fc)
           
protected  void BasicFileChooserUI.uninstallDefaults(JFileChooser fc)
           
protected  void BasicFileChooserUI.uninstallIcons(JFileChooser fc)
           
protected  void BasicFileChooserUI.uninstallListeners(JFileChooser fc)
           
protected  void BasicFileChooserUI.uninstallStrings(JFileChooser fc)
           
 

参数类型为 JFileChooser 的 javax.swing.plaf.basic 中的构造方法
BasicDirectoryModel(JFileChooser filechooser)
           
BasicFileChooserUI(JFileChooser b)
           
 

javax.swing.plaf.metal 中 JFileChooser 的使用
 

参数类型为 JFileChooser 的 javax.swing.plaf.metal 中的方法
protected  JPanel MetalFileChooserUI.createDetailsView(JFileChooser fc)
           
protected  MetalFileChooserUI.DirectoryComboBoxModel MetalFileChooserUI.createDirectoryComboBoxModel(JFileChooser fc)
           
protected  javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxRenderer MetalFileChooserUI.createDirectoryComboBoxRenderer(JFileChooser fc)
           
protected  JPanel MetalFileChooserUI.createList(JFileChooser fc)
           
 ListSelectionListener MetalFileChooserUI.createListSelectionListener(JFileChooser fc)
          创建一个用于文件和目录列表的选择侦听器。
 PropertyChangeListener MetalFileChooserUI.createPropertyChangeListener(JFileChooser fc)
           
 void MetalFileChooserUI.ensureFileIsVisible(JFileChooser fc, File f)
           
protected  JButton MetalFileChooserUI.getApproveButton(JFileChooser fc)
           
 void MetalFileChooserUI.installComponents(JFileChooser fc)
           
protected  void MetalFileChooserUI.installListeners(JFileChooser fc)
           
protected  void MetalFileChooserUI.installStrings(JFileChooser fc)
           
 void MetalFileChooserUI.rescanCurrentDirectory(JFileChooser fc)
           
 void MetalFileChooserUI.uninstallComponents(JFileChooser fc)
           
 

参数类型为 JFileChooser 的 javax.swing.plaf.metal 中的构造方法
MetalFileChooserUI(JFileChooser filechooser)
           
 

javax.swing.plaf.multi 中 JFileChooser 的使用
 

参数类型为 JFileChooser 的 javax.swing.plaf.multi 中的方法
 void MultiFileChooserUI.ensureFileIsVisible(JFileChooser a, File b)
          在由此对象处理的每个 UI 上调用 ensureFileIsVisible 方法。
 FileFilter MultiFileChooserUI.getAcceptAllFileFilter(JFileChooser a)
          在由此对象处理的每个 UI 上调用 getAcceptAllFileFilter 方法。
 String MultiFileChooserUI.getApproveButtonText(JFileChooser a)
          在由此对象处理的每个 UI 上调用 getApproveButtonText 方法。
 String MultiFileChooserUI.getDialogTitle(JFileChooser a)
          在由此对象处理的每个 UI 上调用 getDialogTitle 方法。
 FileView MultiFileChooserUI.getFileView(JFileChooser a)
          在由此对象处理的每个 UI 上调用 getFileView 方法。
 void MultiFileChooserUI.rescanCurrentDirectory(JFileChooser a)
          在由此对象处理的每个 UI 上调用 rescanCurrentDirectory 方法。
 


JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。