Class PlasticFileChooserUI


  • public final class PlasticFileChooserUI
    extends javax.swing.plaf.metal.MetalFileChooserUI
    The JGoodies Plastic L&F implementation of FileChooserUI. Uses FileSystemView.getSystemIcon(File) to look up icons for files.

    Thanks to Andrej Golovnin for his feedback and suggestions.

    Version:
    $Revision: 1.7 $
    See Also:
    FileSystemView.getSystemIcon(File)
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private class  PlasticFileChooserUI.SystemIconFileView
      Unlike its superclass, this class can look up and cache the system icon from the file chooser's file system view.
      • 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 javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView fileView  
      • 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
      PlasticFileChooserUI​(javax.swing.JFileChooser fileChooser)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearIconCache()  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      javax.swing.filechooser.FileView getFileView​(javax.swing.JFileChooser fc)  
      • Methods inherited from class javax.swing.plaf.metal.MetalFileChooserUI

        addControlButtons, createActionMap, createDetailsView, createDirectoryComboBoxModel, createFilterComboBoxModel, createFilterComboBoxRenderer, createList, createListSelectionListener, createPropertyChangeListener, ensureFileIsVisible, getActionMap, getApproveButton, getBottomPanel, getButtonPanel, getDirectoryName, getFileName, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installListeners, installStrings, installUI, removeControlButtons, rescanCurrentDirectory, setDirectoryName, setDirectorySelected, setFileName, uninstallComponents, 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
    • Field Detail

      • fileView

        private final javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView fileView
    • Constructor Detail

      • PlasticFileChooserUI

        public PlasticFileChooserUI​(javax.swing.JFileChooser fileChooser)
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • clearIconCache

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

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