所有类


javax.swing.plaf.basic
类 BasicFileChooserUI

java.lang.Object
  继承者 javax.swing.plaf.ComponentUI
      继承者 javax.swing.plaf.FileChooserUI
          继承者 javax.swing.plaf.basic.BasicFileChooserUI
直接已知子类:
MetalFileChooserUI

public class BasicFileChooserUI
   
   
   
   
extends FileChooserUI

FileChooser 的基本 L&F 实现。


嵌套类摘要
protected  classBasicFileChooserUI.AcceptAllFileFilter
           
protected  classBasicFileChooserUI.ApproveSelectionAction
          响应 Open 或 Save 请求
protected  classBasicFileChooserUI.BasicFileView
           
protected  classBasicFileChooserUI.CancelSelectionAction
          响应取消请求。
protected  classBasicFileChooserUI.ChangeToParentDirectoryAction
           
protected  classBasicFileChooserUI.DoubleClickListener
           
protected  classBasicFileChooserUI.GoHomeAction
          基于“Home”键事件或等效事件的动作。
protected  classBasicFileChooserUI.NewFolderAction
          创建新文件夹。
protected  classBasicFileChooserUI.SelectionListener
           
protected  classBasicFileChooserUI.UpdateAction
          重新扫描当前目录中的文件。
 
字段摘要
protected  intcancelButtonMnemonic
           
protected  StringcancelButtonText
           
protected  StringcancelButtonToolTipText
           
protected  IconcomputerIcon
           
protected  IcondetailsViewIcon
           
protected  IcondirectoryIcon
           
protected  intdirectoryOpenButtonMnemonic
          选择了目录且当前选择模式不是 DIRECTORIES_ONLY 时用于确认按钮的助记符键代码。
protected  StringdirectoryOpenButtonText
          选择了目录且当前选择模式不是 DIRECTORIES_ONLY 时在确认按钮上显示的标签文本。
protected  StringdirectoryOpenButtonToolTipText
          选择了目录且当前选择模式不是 DIRECTORIES_ONLY 时在确认按钮上显示的工具提示文本。
protected  IconfileIcon
           
protected  IconfloppyDriveIcon
           
protected  IconhardDriveIcon
           
protected  inthelpButtonMnemonic
           
protected  StringhelpButtonText
           
protected  StringhelpButtonToolTipText
           
protected  IconhomeFolderIcon
           
protected  IconlistViewIcon
           
protected  IconnewFolderIcon
           
protected  intopenButtonMnemonic
           
protected  StringopenButtonText
           
protected  StringopenButtonToolTipText
           
protected  intsaveButtonMnemonic
           
protected  StringsaveButtonText
           
protected  StringsaveButtonToolTipText
           
protected  intupdateButtonMnemonic
           
protected  StringupdateButtonText
           
protected  StringupdateButtonToolTipText
           
protected  IconupFolderIcon
           
 
构造方法摘要
BasicFileChooserUI(JFileChooser b)
           
 
方法摘要
 voidclearIconCache()
           
protected  MouseListenercreateDoubleClickListener(JFileChooser fc, JList list)
           
 ListSelectionListenercreateListSelectionListener(JFileChooser fc)
           
protected  voidcreateModel()
           
 PropertyChangeListenercreatePropertyChangeListener(JFileChooser fc)
           
 voidensureFileIsVisible(JFileChooser fc, File f)
           
 FileFiltergetAcceptAllFileFilter(JFileChooser fc)
          返回默认接受所有文件过滤器
 JPanelgetAccessoryPanel()
           
protected  JButtongetApproveButton(JFileChooser fc)
           
 intgetApproveButtonMnemonic(JFileChooser fc)
           
 StringgetApproveButtonText(JFileChooser fc)
           
 StringgetApproveButtonToolTipText(JFileChooser fc)
           
 ActiongetApproveSelectionAction()
           
 ActiongetCancelSelectionAction()
           
 ActiongetChangeToParentDirectoryAction()
           
 StringgetDialogTitle(JFileChooser fc)
          返回此对话框的标题
protected  FilegetDirectory()
          记忆当前在 UI 中选择的目录的属性。
 StringgetDirectoryName()
           
 JFileChoosergetFileChooser()
           
 StringgetFileName()
           
 FileViewgetFileView(JFileChooser fc)
           
 ActiongetGoHomeAction()
           
 BasicDirectoryModelgetModel()
           
 ActiongetNewFolderAction()
           
 ActiongetUpdateAction()
           
 voidinstallComponents(JFileChooser fc)
           
protected  voidinstallDefaults(JFileChooser fc)
           
protected  voidinstallIcons(JFileChooser fc)
           
protected  voidinstallListeners(JFileChooser fc)
           
protected  voidinstallStrings(JFileChooser fc)
           
 voidinstallUI(JComponent c)
          配置指定组件,使其适合外观。
protected  booleanisDirectorySelected()
          记忆当前是否在 UI 中选择了目录的属性。
 voidrescanCurrentDirectory(JFileChooser fc)
           
protected  voidsetDirectory(File f)
          记忆当前在 UI 中选择的目录的属性。
 voidsetDirectoryName(String dirname)
           
protected  voidsetDirectorySelected(boolean b)
          记忆当前是否在 UI 中选择了目录的属性。
 voidsetFileName(String filename)
           
 voiduninstallComponents(JFileChooser fc)
           
protected  voiduninstallDefaults(JFileChooser fc)
           
protected  voiduninstallIcons(JFileChooser fc)
           
protected  voiduninstallListeners(JFileChooser fc)
           
protected  voiduninstallStrings(JFileChooser fc)
           
 voiduninstallUI(JComponent c)
          在 installUI 期间,在指定组件上反向执行的配置操作。
 
从类 javax.swing.plaf.ComponentUI 继承的方法
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

directoryIcon

protected Icon directoryIcon

fileIcon

protected Icon fileIcon

computerIcon

protected Icon computerIcon

hardDriveIcon

protected Icon hardDriveIcon

floppyDriveIcon

protected Icon floppyDriveIcon

newFolderIcon

protected Icon newFolderIcon

upFolderIcon

protected Icon upFolderIcon