Interface IconResourceAccessor

  • All Known Subinterfaces:
    StringAndIconResourceAccessor
    All Known Implementing Classes:
    ResourceBundleAccessor

    public interface IconResourceAccessor
    Describes an object that can access an Icon resource via a key.

    This interface is used by the JGoodies Standard Dialog Library (JSDL) to access Icons from ResourceBundles and ResourceMaps (a class from JGoodies Application). The latter implements this interface directly. Since ResourceBundle does not implement this interface, a wrapper can be used that implements this interface and just delegates to the ResourceBundle to look up the Icon for a given resource key.

    Note: This class is not part of the public JGoodies Common API. It's intended for implementation purposes only. The class's API may change at any time.

    Since:
    1.8
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.swing.Icon getIcon​(java.lang.String key)
      Returns the Icon resource associated with the given key.
    • Method Detail

      • getIcon

        javax.swing.Icon getIcon​(java.lang.String key)
        Returns the Icon resource associated with the given key.
        Parameters:
        key - the key used to look up the Icon
        Returns:
        the Icon