public class BEFileChooserUIWin
extends com.sun.java.swing.plaf.windows.WindowsFileChooserUI
目前属windows平台专用UI实现类.
com.sun.java.swing.plaf.windows.WindowsFileChooserUI.DirectoryComboBoxAction, com.sun.java.swing.plaf.windows.WindowsFileChooserUI.DirectoryComboBoxModel, com.sun.java.swing.plaf.windows.WindowsFileChooserUI.FileRenderer, com.sun.java.swing.plaf.windows.WindowsFileChooserUI.FilterComboBoxModel, com.sun.java.swing.plaf.windows.WindowsFileChooserUI.FilterComboBoxRenderer, com.sun.java.swing.plaf.windows.WindowsFileChooserUI.SingleClickListener, com.sun.java.swing.plaf.windows.WindowsFileChooserUI.WindowsFileView, com.sun.java.swing.plaf.windows.WindowsFileChooserUI.WindowsNewFolderAction
javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter, javax.swing.plaf.basic.BasicFileChooserUI.ApproveSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView, javax.swing.plaf.basic.BasicFileChooserUI.CancelSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.ChangeToParentDirectoryAction, javax.swing.plaf.basic.BasicFileChooserUI.DoubleClickListener, javax.swing.plaf.basic.BasicFileChooserUI.GoHomeAction, javax.swing.plaf.basic.BasicFileChooserUI.NewFolderAction, javax.swing.plaf.basic.BasicFileChooserUI.SelectionListener, javax.swing.plaf.basic.BasicFileChooserUI.UpdateAction
cancelButtonMnemonic, cancelButtonText, cancelButtonToolTipText, computerIcon, detailsViewIcon, directoryIcon, directoryOpenButtonMnemonic, directoryOpenButtonText, directoryOpenButtonToolTipText, fileIcon, floppyDriveIcon, hardDriveIcon, helpButtonMnemonic, helpButtonText, helpButtonToolTipText, homeFolderIcon, listViewIcon, newFolderIcon, openButtonMnemonic, openButtonText, openButtonToolTipText, saveButtonMnemonic, saveButtonText, saveButtonToolTipText, updateButtonMnemonic, updateButtonText, updateButtonToolTipText, upFolderIcon, viewMenuIcon
构造器和说明 |
---|
BEFileChooserUIWin(javax.swing.JFileChooser filechooser)
Instantiates a new bE file chooser ui win.
|
限定符和类型 | 方法和说明 |
---|---|
protected javax.swing.JPanel |
createList(javax.swing.JFileChooser fc)
重写父类方法,以实现对文件查看列表的额外设置.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates the ui.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
addControlButtons, createActionMap, createDetailsView, createDirectoryComboBoxModel, createDirectoryComboBoxRenderer, createFilterComboBoxModel, createFilterComboBoxRenderer, createListSelectionListener, createPropertyChangeListener, ensureFileIsVisible, getActionMap, getApproveButton, getBottomPanel, getButtonPanel, getDirectoryName, getFileName, getFileView, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installListeners, installStrings, installUI, removeControlButtons, rescanCurrentDirectory, setDirectoryName, setDirectorySelected, setFileName, uninstallComponents, uninstallUI, valueChanged
clearIconCache, createDoubleClickListener, createModel, getAcceptAllFileFilter, getAccessoryPanel, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getApproveSelectionAction, getCancelSelectionAction, getChangeToParentDirectoryAction, getDefaultButton, getDialogTitle, getDirectory, getFileChooser, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installDefaults, installIcons, isDirectorySelected, setDirectory, uninstallDefaults, uninstallIcons, uninstallListeners, uninstallStrings
public BEFileChooserUIWin(javax.swing.JFileChooser filechooser)
filechooser
- the filechooserpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- the cpublic void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
在类中 javax.swing.plaf.ComponentUI
protected javax.swing.JPanel createList(javax.swing.JFileChooser fc)
为什么要重写此方法,没有更好的方法吗?
答:因父类的封装结构不佳,filePane是private私有,子类中无法直接引用,
要想对filePane中的文列表额外设置,目前重写本方法是个没有办法的方法.
sun.swing.FilePane源码可查看地址:Click here.
createList
在类中 com.sun.java.swing.plaf.windows.WindowsFileChooserUI
fc
- the fc