Class DefaultIconCache

  • All Implemented Interfaces:
    IIconCache

    public class DefaultIconCache
    extends java.lang.Object
    implements IIconCache
    Cache for component icons. Asynchronously loads icons and updates tree.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_FOLDER
      The default folder icon name.
      protected java.util.Map icons
      The icon map.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.Icon getIcon​(ISwingTreeNode node)
      Get an icon.
      • Methods inherited from class java.lang.Object

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

      • DEFAULT_FOLDER

        public static final java.lang.String DEFAULT_FOLDER
        The default folder icon name.
        See Also:
        Constant Field Values
      • icons

        protected java.util.Map icons
        The icon map.
    • Constructor Detail

      • DefaultIconCache

        public DefaultIconCache()
    • Method Detail

      • getIcon

        public javax.swing.Icon getIcon​(ISwingTreeNode node)
        Get an icon.
        Specified by:
        getIcon in interface IIconCache
        Parameters:
        node - The node.
        Returns:
        The icon.