模块 java.desktop

类 FileChooserUI

java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.FileChooserUI
已知子类:
BasicFileChooserUI , MultiFileChooserUI

public abstract class FileChooserUI extends ComponentUI
JFileChooser 的可插拔外观接口。
  • 构造方法详细信息

    • FileChooserUI

      protected FileChooserUI()
      子类调用的构造方法。
  • 方法详情

    • getAcceptAllFileFilter

      public abstract FileFilter  getAcceptAllFileFilter(JFileChooser  fc)
      返回一个接受所有文件过滤器。
      参数:
      fc - 文件选择器
      返回:
      接受所有文件过滤器
    • getFileView

      public abstract FileView  getFileView(JFileChooser  fc)
      返回文件视图。
      参数:
      fc - 文件选择器
      返回:
      文件视图
    • getApproveButtonText

      public abstract String  getApproveButtonText(JFileChooser  fc)
      返回批准按钮文本。
      参数:
      fc - 文件选择器
      返回:
      批准按钮文本。
    • getDialogTitle

      public abstract String  getDialogTitle(JFileChooser  fc)
      返回对话框标题。
      参数:
      fc - 文件选择器
      返回:
      对话框标题。
    • rescanCurrentDirectory

      public abstract void rescanCurrentDirectory(JFileChooser  fc)
      重新扫描当前目录。
      参数:
      fc - 文件选择器
    • ensureFileIsVisible

      public abstract void ensureFileIsVisible(JFileChooser  fc, File  f)
      确保相关文件可见。
      参数:
      fc - 文件选择器
      f - 文件
    • getDefaultButton

      public JButton  getDefaultButton(JFileChooser  fc)
      返回当前 LookAndFeel 的默认按钮。 JFileChooser 将使用此按钮作为对话框窗口的默认按钮。
      参数:
      fc - 请求其默认按钮的 JFileChooser
      返回:
      当前外观的默认 JButton
      自从:
      1.7