JavaTM 2 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 2 Platform
Standard Ed. 6

提交錯誤或意見

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