类的用途
javax.swing.JFileChooser
使用 JFileChooser 的包
包
描述
提供一个接口和许多抽象类,Swing 使用这些抽象类来提供其可插入的外观功能。
提供根据基本外观构建的用户界面对象。
提供根据 Java 外观(曾经代号为 Metal )构建的用户界面对象,这是默认外观。
提供组合了两种或多种外观的用户界面对象。
-
JFileChooser 在 javax.swing.plaf 中的用法
javax.swing.plaf 中的方法,参数类型为 JFileChooser修饰符和类型方法描述abstract voidFileChooserUI.ensureFileIsVisible(JFileChooser fc, File f) 确保相关文件可见。abstract FileFilterFileChooserUI.getAcceptAllFileFilter(JFileChooser fc) 返回一个接受所有文件过滤器。abstract StringFileChooserUI.getApproveButtonText(JFileChooser fc) 返回批准按钮文本。FileChooserUI.getDefaultButton(JFileChooser fc) 返回当前LookAndFeel的默认按钮。abstract StringFileChooserUI.getDialogTitle(JFileChooser fc) 返回对话框标题。abstract FileViewFileChooserUI.getFileView(JFileChooser fc) 返回文件视图。abstract voidFileChooserUI.rescanCurrentDirectory(JFileChooser fc) 重新扫描当前目录。 -
JFileChooser 在 javax.swing.plaf.basic 中的用法
javax.swing.plaf.basic 中返回 JFileChooser 的方法javax.swing.plaf.basic 中的方法,参数类型为 JFileChooser修饰符和类型方法描述protected MouseListenerBasicFileChooserUI.createDoubleClickListener(JFileChooser fc, JList<?> list) 创建一个双击监听。BasicFileChooserUI.createListSelectionListener(JFileChooser fc) 创建列表选择监听。BasicFileChooserUI.createPropertyChangeListener(JFileChooser fc) 创建属性更改监听。voidBasicFileChooserUI.ensureFileIsVisible(JFileChooser fc, File f) 确保相关文件可见。BasicFileChooserUI.getAcceptAllFileFilter(JFileChooser fc) 返回默认接受所有文件过滤器protected JButtonBasicFileChooserUI.getApproveButton(JFileChooser fc) 返回批准按钮。intBasicFileChooserUI.getApproveButtonMnemonic(JFileChooser fc) 返回批准按钮助记符。BasicFileChooserUI.getApproveButtonText(JFileChooser fc) 返回批准按钮文本。BasicFileChooserUI.getApproveButtonToolTipText(JFileChooser fc) 返回批准按钮工具提示。BasicFileChooserUI.getDialogTitle(JFileChooser fc) 返回此对话框的标题BasicFileChooserUI.getFileView(JFileChooser fc) voidBasicFileChooserUI.installComponents(JFileChooser fc) 安装组件。protected voidBasicFileChooserUI.installDefaults(JFileChooser fc) 安装默认值。protected voidBasicFileChooserUI.installIcons(JFileChooser fc) 安装图标。protected voidBasicFileChooserUI.installListeners(JFileChooser fc) 安装监听。protected voidBasicFileChooserUI.installStrings(JFileChooser fc) 安装字符串。voidBasicFileChooserUI.rescanCurrentDirectory(JFileChooser fc) 重新扫描当前目录。voidBasicFileChooserUI.uninstallComponents(JFileChooser fc) 卸载组件。protected voidBasicFileChooserUI.uninstallDefaults(JFileChooser fc) 卸载默认值。protected voidBasicFileChooserUI.uninstallIcons(JFileChooser fc) 卸载图标。protected voidBasicFileChooserUI.uninstallListeners(JFileChooser fc) 卸载监听。protected voidBasicFileChooserUI.uninstallStrings(JFileChooser fc) 卸载字符串。javax.swing.plaf.basic 中的构造函数,参数类型为 JFileChooser修饰符构造方法描述BasicDirectoryModel(JFileChooser filechooser) 构造一个BasicDirectoryModel新实例构造一个BasicFileChooserUI -
JFileChooser 在 javax.swing.plaf.metal 中的用法
javax.swing.plaf.metal 中的方法,参数类型为 JFileChooser修饰符和类型方法描述protected JPanelMetalFileChooserUI.createDetailsView(JFileChooser fc) 构造一个细节视图。MetalFileChooserUI.createDirectoryComboBoxModel(JFileChooser fc) 为DirectoryComboBox构造一个新的DataModel实例。protected JPanelMetalFileChooserUI.createList(JFileChooser fc) 构造一个细节视图。MetalFileChooserUI.createListSelectionListener(JFileChooser fc) 为文件和目录列表创建一个选择监听。javax.swing.plaf.metal 中的构造函数,参数类型为 JFileChooser -
JFileChooser 在 javax.swing.plaf.multi 中的用法
javax.swing.plaf.multi 中的方法,参数类型为 JFileChooser修饰符和类型方法描述voidMultiFileChooserUI.ensureFileIsVisible(JFileChooser a, File b) 在此对象处理的每个 UI 上调用ensureFileIsVisible方法。MultiFileChooserUI.getAcceptAllFileFilter(JFileChooser a) 在此对象处理的每个 UI 上调用getAcceptAllFileFilter方法。MultiFileChooserUI.getApproveButtonText(JFileChooser a) 在此对象处理的每个 UI 上调用getApproveButtonText方法。MultiFileChooserUI.getDialogTitle(JFileChooser a) 在此对象处理的每个 UI 上调用getDialogTitle方法。MultiFileChooserUI.getFileView(JFileChooser a) 在此对象处理的每个 UI 上调用getFileView方法。voidMultiFileChooserUI.rescanCurrentDirectory(JFileChooser a) 在此对象处理的每个 UI 上调用rescanCurrentDirectory方法。