Class FlatFileChooserUI


  • public class FlatFileChooserUI
    extends javax.swing.plaf.metal.MetalFileChooserUI
    Provides the Flat LaF UI delegate for JFileChooser.
    • 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
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlatFileChooserUI

        public FlatFileChooserUI​(javax.swing.JFileChooser filechooser)
    • 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 class javax.swing.plaf.metal.MetalFileChooserUI
      • uninstallComponents

        public void uninstallComponents​(javax.swing.JFileChooser fc)
        Overrides:
        uninstallComponents in class javax.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 class javax.swing.plaf.metal.MetalFileChooserUI
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.metal.MetalFileChooserUI
      • getMinimumSize

        public java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)
        Overrides:
        getMinimumSize in class javax.swing.plaf.metal.MetalFileChooserUI
      • getFileView

        public javax.swing.filechooser.FileView getFileView​(javax.swing.JFileChooser fc)
        Overrides:
        getFileView in class javax.swing.plaf.basic.BasicFileChooserUI
      • clearIconCache

        public void clearIconCache()
        Overrides:
        clearIconCache in class javax.swing.plaf.basic.BasicFileChooserUI
      • doNotUseSystemIcons

        private static boolean doNotUseSystemIcons()