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.MetalFileChooserUIProvides the Flat LaF UI delegate forJFileChooser.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classFlatFileChooserUI.FlatFileViewstatic classFlatFileChooserUI.FlatShortcutsPanelprivate static classFlatFileChooserUI.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.FlatFileViewfileViewprivate FlatFileChooserUI.FlatShortcutsPanelshortcutsPanelprivate javax.swing.JScrollPaneshortcutsScrollPane-
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 voidclearIconCache()protected javax.swing.JPanelcreateDetailsView(javax.swing.JFileChooser fc)protected FlatFileChooserUI.FlatShortcutsPanelcreateShortcutsPanel(javax.swing.JFileChooser fc)static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)private static booleandoNotUseSystemIcons()javax.swing.filechooser.FileViewgetFileView(javax.swing.JFileChooser fc)java.awt.DimensiongetMinimumSize(javax.swing.JComponent c)java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)voidinstallComponents(javax.swing.JFileChooser fc)private voidpatchUI(javax.swing.JFileChooser fc)voiduninstallComponents(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:
installComponentsin classjavax.swing.plaf.metal.MetalFileChooserUI
-
uninstallComponents
public void uninstallComponents(javax.swing.JFileChooser fc)
- Overrides:
uninstallComponentsin classjavax.swing.plaf.metal.MetalFileChooserUI
-
patchUI
private void patchUI(javax.swing.JFileChooser fc)
-
createDetailsView
protected javax.swing.JPanel createDetailsView(javax.swing.JFileChooser fc)
- Overrides:
createDetailsViewin 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:
getPreferredSizein classjavax.swing.plaf.metal.MetalFileChooserUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSizein classjavax.swing.plaf.metal.MetalFileChooserUI
-
getFileView
public javax.swing.filechooser.FileView getFileView(javax.swing.JFileChooser fc)
- Overrides:
getFileViewin classjavax.swing.plaf.basic.BasicFileChooserUI
-
clearIconCache
public void clearIconCache()
- Overrides:
clearIconCachein classjavax.swing.plaf.basic.BasicFileChooserUI
-
doNotUseSystemIcons
private static boolean doNotUseSystemIcons()
-
-