|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IconProvider
Provides icons and images depending on the look-and-feel.
Swing does not provide an abstraction layer
for loading icons according to the current look and feel.
As a consequence, applications either must stick to a single look and feel
or will break the icon theme if the user selects another look and feel.
An IconProvider implements such an abstraction as it loads
icons (for a single namespace, aka "realm") according to the current LookAndFeel and
the icon's name.
| Method Summary | |
|---|---|
String |
getRealm()
Gets the namespace (realm) this icon provider is responsible for. |
ImageIcon |
loadImageIcon(LookAndFeel plaf,
String name)
Loads an image icon for the given look and feel. |
| Method Detail |
|---|
String getRealm()
ImageIcon loadImageIcon(LookAndFeel plaf,
String name)
throws MissingResourceException
PlafGlobal)
plaf - the look and feelname - the icon's name (without extension like gif or png!)
MissingResourceException - if no such icon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||