IconResourceAccessor (JGoodies Common 1.8 API)
Date: 2015-01-03

com.jgoodies.common.internal

## 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
  Author:
    Karsten Lentzsch

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Icon` | `getIcon(String key)` Returns the Icon resource associated with the given key.

- - ### Method Detail

    - #### getIcon

          Icon getIcon(String key)

      Returns the Icon resource associated with the given key.
      Parameters:
        `key` - the key used to look up the Icon
      Returns:
        the Icon

Copyright © 2009-2014 JGoodies Software GmbH. All Rights Reserved.