Package jadex.base.gui.filetree
Class DefaultIconCache
- java.lang.Object
-
- jadex.base.gui.filetree.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.
-
Constructor Summary
Constructors Constructor Description DefaultIconCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.Icon
getIcon(ISwingTreeNode node)
Get an icon.
-
-
-
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.
-
-
Method Detail
-
getIcon
public javax.swing.Icon getIcon(ISwingTreeNode node)
Get an icon.- Specified by:
getIcon
in interfaceIIconCache
- Parameters:
node
- The node.- Returns:
- The icon.
-
-