java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.FileChooserUI
- 直接已知的子类:
-
BasicFileChooserUI,MultiFileChooserUI
可插拔的外观接口,用于
JFileChooser。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidensureFileIsVisible(JFileChooser fc, File f) 确保所讨论的文件可见。abstract FileFilter返回一个接受所有文件的过滤器。abstract String返回批准按钮文本。返回当前LookAndFeel的默认按钮。abstract String返回对话框标题。abstract FileView返回文件视图。abstract void重新扫描当前目录。Methods declared in class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
Constructor Details
-
FileChooserUI
protected FileChooserUI()子类调用的构造函数。
-
-
Method Details
-
getAcceptAllFileFilter
返回一个接受所有文件的过滤器。- 参数:
-
fc- 文件选择器 - 返回:
- 一个接受所有文件的过滤器
-
getFileView
返回文件视图。- 参数:
-
fc- 文件选择器 - 返回:
- 一个文件视图
-
getApproveButtonText
返回批准按钮文本。- 参数:
-
fc- 文件选择器 - 返回:
- 批准按钮文本。
-
getDialogTitle
返回对话框标题。- 参数:
-
fc- 文件选择器 - 返回:
- 对话框标题。
-
rescanCurrentDirectory
重新扫描当前目录。- 参数:
-
fc- 文件选择器
-
ensureFileIsVisible
确保所讨论的文件可见。- 参数:
-
fc- 文件选择器 -
f- 文件
-
getDefaultButton
返回当前LookAndFeel的默认按钮。JFileChooser将使用此按钮作为对话框窗口的默认按钮。- 参数:
-
fc- 请求其默认按钮的JFileChooser - 返回:
- 当前外观的默认JButton
- 自版本:
- 1.7
-