public class BasicFileChooserUI extends FileChooserUI
| Modifier and Type | Class and Description |
|---|---|
protected class |
BasicFileChooserUI
|
protected class |
BasicFileChooserUI
Responds to an Open or Save request
|
protected class |
BasicFileChooserUI
|
protected class |
BasicFileChooserUI
Responds to a cancel request.
|
protected class |
BasicFileChooserUI
|
protected class |
BasicFileChooserUI
|
protected class |
BasicFileChooserUI
Acts on the "home" key event or equivalent event.
|
protected class |
BasicFileChooserUI
Creates a new folder.
|
protected class |
BasicFileChooserUI
|
protected class |
BasicFileChooserUI
Rescans the files in the current directory
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
cancelButtonMnemonic
|
protected String |
cancelButtonText
|
protected String |
cancelButtonToolTipText
|
protected Icon |
computerIcon
|
protected Icon |
detailsViewIcon
|
protected Icon |
directoryIcon
|
protected int |
directoryOpenButtonMnemonic
The mnemonic keycode used for the approve button when a directory is selected and the current selection mode is FILES_ONLY.
|
protected String |
directoryOpenButtonText
The label text displayed on the approve button when a directory is selected and the current selection mode is FILES_ONLY.
|
protected String |
directoryOpenButtonToolTipText
The tooltip text displayed on the approve button when a directory is selected and the current selection mode is FILES_ONLY.
|
protected Icon |
fileIcon
|
protected Icon |
floppyDriveIcon
|
protected Icon |
hardDriveIcon
|
protected int |
helpButtonMnemonic
|
protected String |
helpButtonText
|
protected String |
helpButtonToolTipText
|
protected Icon |
homeFolderIcon
|
protected Icon |
listViewIcon
|
protected Icon |
newFolderIcon
|
protected int |
openButtonMnemonic
|
protected String |
openButtonText
|
protected String |
openButtonToolTipText
|
protected int |
saveButtonMnemonic
|
protected String |
saveButtonText
|
protected String |
saveButtonToolTipText
|
protected int |
updateButtonMnemonic
|
protected String |
updateButtonText
|
protected String |
updateButtonToolTipText
|
protected Icon |
upFolderIcon
|
protected Icon |
viewMenuIcon
|
| Constructor and Description |
|---|
BasicFileChooserUI(JFileChooser
|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, updateprotected IcondirectoryIcon
protected IconfileIcon
protected IconcomputerIcon
protected IconhardDriveIcon
protected IconfloppyDriveIcon
protected IconnewFolderIcon
protected IconupFolderIcon
protected IconhomeFolderIcon
protected IconlistViewIcon
protected IcondetailsViewIcon
protected IconviewMenuIcon
protected int saveButtonMnemonic
protected int openButtonMnemonic
protected int cancelButtonMnemonic
protected int updateButtonMnemonic
protected int helpButtonMnemonic
protected int directoryOpenButtonMnemonic
protected StringsaveButtonText
protected StringopenButtonText
protected StringcancelButtonText
protected StringupdateButtonText
protected StringhelpButtonText
protected StringdirectoryOpenButtonText
protected StringsaveButtonToolTipText
protected StringopenButtonToolTipText
protected StringcancelButtonToolTipText
protected StringupdateButtonToolTipText
protected StringhelpButtonToolTipText
protected StringdirectoryOpenButtonToolTipText
public BasicFileChooserUI(JFileChooserb)
public static ComponentUIcreateUI(JComponent c)
BasicFileChooserUI implementation for the specified component. By default the
BasicLookAndFeel class uses
createUI methods of all basic UIs classes to instantiate UIs.
c - the
JFileChooser which needs a UI
BasicFileChooserUI object
UIDefaults.getUI(JComponent)
public void installUI(JComponentc)
ComponentUI
ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:
LayoutManager on the component if necessary. PropertyChangeListener on the component in order to detect and respond to component property changes appropriately. installUI in class
ComponentUI
c - the component where this UI delegate is being installed
ComponentUI.uninstallUI(javax.swing.JComponent) ,
JComponent.setUI(javax.swing.plaf.ComponentUI) ,
JComponent.updateUI()
public void uninstallUI(JComponentc)
ComponentUI
installUI. This method is invoked when this
UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in
installUI, being careful to leave the
JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:
uninstallUI in class
ComponentUI
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.installUI(javax.swing.JComponent) ,
JComponent.updateUI()
public void installComponents(JFileChooserfc)
public void uninstallComponents(JFileChooserfc)
protected void installListeners(JFileChooserfc)
protected void uninstallListeners(JFileChooserfc)
protected void installDefaults(JFileChooserfc)
protected void installIcons(JFileChooserfc)
protected void installStrings(JFileChooserfc)
protected void uninstallDefaults(JFileChooserfc)
protected void uninstallIcons(JFileChooserfc)
protected void uninstallStrings(JFileChooserfc)
protected void createModel()
public BasicDirectoryModelgetModel()
public PropertyChangeListenercreatePropertyChangeListener(JFileChooser fc)
public StringgetFileName()
public StringgetDirectoryName()
public void setFileName(Stringfilename)
public void setDirectoryName(Stringdirname)
public void rescanCurrentDirectory(JFileChooserfc)
public void ensureFileIsVisible(JFileChooserfc, File f)
public JFileChoosergetFileChooser()
public JPanelgetAccessoryPanel()
protected JButtongetApproveButton(JFileChooser fc)
public JButtongetDefaultButton(JFileChooser fc)
FileChooserUI
LookAndFeel.
JFileChooser will use this button as default button for dialog windows.
public StringgetApproveButtonToolTipText(JFileChooser fc)
public void clearIconCache()
protected MouseListenercreateDoubleClickListener(JFileChooser fc, JList list)
public ListSelectionListenercreateListSelectionListener(JFileChooser fc)
protected boolean isDirectorySelected()
true iff a directory is currently selected.
protected void setDirectorySelected(boolean b)
b - iff a directory is currently selected.
protected FilegetDirectory()
directory property
setDirectory(java.io.File)
protected void setDirectory(Filef)
f - the
File object representing the directory that is currently selected
public FileFiltergetAcceptAllFileFilter(JFileChooser fc)
public FileViewgetFileView(JFileChooser fc)
public StringgetDialogTitle(JFileChooser fc)
public int getApproveButtonMnemonic(JFileChooserfc)
public StringgetApproveButtonText(JFileChooser fc)
public ActiongetNewFolderAction()
public ActiongetGoHomeAction()
public ActiongetChangeToParentDirectoryAction()
public ActiongetApproveSelectionAction()
public ActiongetCancelSelectionAction()
public ActiongetUpdateAction()