Package com.formdev.flatlaf.ui
Class FlatFileChooserUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.FileChooserUI
-
- javax.swing.plaf.basic.BasicFileChooserUI
-
- javax.swing.plaf.metal.MetalFileChooserUI
-
- com.formdev.flatlaf.ui.FlatFileChooserUI
-
public class FlatFileChooserUI extends javax.swing.plaf.metal.MetalFileChooserUI
Provides the Flat LaF UI delegate forJFileChooser
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
FlatFileChooserUI.FlatFileView
static class
FlatFileChooserUI.FlatShortcutsPanel
private static class
FlatFileChooserUI.ShortcutIcon
-
Nested classes/interfaces inherited from class javax.swing.plaf.metal.MetalFileChooserUI
javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxAction, javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel, javax.swing.plaf.metal.MetalFileChooserUI.FileRenderer, javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel, javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxRenderer, javax.swing.plaf.metal.MetalFileChooserUI.SingleClickListener
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicFileChooserUI
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
-
-
Field Summary
Fields Modifier and Type Field Description private FlatFileChooserUI.FlatFileView
fileView
private FlatFileChooserUI.FlatShortcutsPanel
shortcutsPanel
private javax.swing.JScrollPane
shortcutsScrollPane
-
Fields inherited from class javax.swing.plaf.basic.BasicFileChooserUI
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
-
-
Constructor Summary
Constructors Constructor Description FlatFileChooserUI(javax.swing.JFileChooser filechooser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearIconCache()
protected javax.swing.JPanel
createDetailsView(javax.swing.JFileChooser fc)
protected FlatFileChooserUI.FlatShortcutsPanel
createShortcutsPanel(javax.swing.JFileChooser fc)
static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent c)
private static boolean
doNotUseSystemIcons()
javax.swing.filechooser.FileView
getFileView(javax.swing.JFileChooser fc)
java.awt.Dimension
getMinimumSize(javax.swing.JComponent c)
java.awt.Dimension
getPreferredSize(javax.swing.JComponent c)
void
installComponents(javax.swing.JFileChooser fc)
private void
patchUI(javax.swing.JFileChooser fc)
void
uninstallComponents(javax.swing.JFileChooser fc)
-
Methods inherited from class javax.swing.plaf.metal.MetalFileChooserUI
addControlButtons, createActionMap, createDirectoryComboBoxModel, createFilterComboBoxModel, createFilterComboBoxRenderer, createList, createListSelectionListener, createPropertyChangeListener, ensureFileIsVisible, getActionMap, getApproveButton, getBottomPanel, getButtonPanel, getDirectoryName, getFileName, getMaximumSize, installListeners, installStrings, installUI, removeControlButtons, rescanCurrentDirectory, setDirectoryName, setDirectorySelected, setFileName, uninstallUI, valueChanged
-
Methods inherited from class javax.swing.plaf.basic.BasicFileChooserUI
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
-
-
-
-
Field Detail
-
fileView
private final FlatFileChooserUI.FlatFileView fileView
-
shortcutsPanel
private FlatFileChooserUI.FlatShortcutsPanel shortcutsPanel
-
shortcutsScrollPane
private javax.swing.JScrollPane shortcutsScrollPane
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installComponents
public void installComponents(javax.swing.JFileChooser fc)
- Overrides:
installComponents
in classjavax.swing.plaf.metal.MetalFileChooserUI
-
uninstallComponents
public void uninstallComponents(javax.swing.JFileChooser fc)
- Overrides:
uninstallComponents
in classjavax.swing.plaf.metal.MetalFileChooserUI
-
patchUI
private void patchUI(javax.swing.JFileChooser fc)
-
createDetailsView
protected javax.swing.JPanel createDetailsView(javax.swing.JFileChooser fc)
- Overrides:
createDetailsView
in classjavax.swing.plaf.metal.MetalFileChooserUI
-
createShortcutsPanel
protected FlatFileChooserUI.FlatShortcutsPanel createShortcutsPanel(javax.swing.JFileChooser fc)
- Since:
- 2.3
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in classjavax.swing.plaf.metal.MetalFileChooserUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSize
in classjavax.swing.plaf.metal.MetalFileChooserUI
-
getFileView
public javax.swing.filechooser.FileView getFileView(javax.swing.JFileChooser fc)
- Overrides:
getFileView
in classjavax.swing.plaf.basic.BasicFileChooserUI
-
clearIconCache
public void clearIconCache()
- Overrides:
clearIconCache
in classjavax.swing.plaf.basic.BasicFileChooserUI
-
doNotUseSystemIcons
private static boolean doNotUseSystemIcons()
-
-