Class RadianceFileChooserUI.RadianceFileView

  • Enclosing class:
    RadianceFileChooserUI

    private class RadianceFileChooserUI.RadianceFileView
    extends javax.swing.filechooser.FileView
    Custom file view implementation that returns system-specific file icons.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​javax.swing.Icon> pathIconCache
      Cache for the file icons.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RadianceFileView()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cacheIcon​(java.io.File f, javax.swing.Icon icon)  
      void clearIconCache()  
      javax.swing.Icon getCachedIcon​(java.io.File f)  
      javax.swing.Icon getDefaultIcon​(java.io.File f)
      Returns the default file icon.
      javax.swing.Icon getIcon​(java.io.File f)  
      • Methods inherited from class javax.swing.filechooser.FileView

        isTraversable
      • Methods inherited from class java.lang.Object

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

      • pathIconCache

        private final java.util.Map<java.lang.String,​javax.swing.Icon> pathIconCache
        Cache for the file icons.
    • Constructor Detail

      • RadianceFileView

        private RadianceFileView()
    • Method Detail

      • getCachedIcon

        public javax.swing.Icon getCachedIcon​(java.io.File f)
      • getIcon

        public javax.swing.Icon getIcon​(java.io.File f)
      • cacheIcon

        public void cacheIcon​(java.io.File f,
                              javax.swing.Icon icon)
      • clearIconCache

        public void clearIconCache()
      • getDefaultIcon

        public javax.swing.Icon getDefaultIcon​(java.io.File f)
        Returns the default file icon.
        Parameters:
        f - File.
        Returns:
        File icon.