|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.IconRegistry
public class IconRegistry
Registry for icons.
Icons can be accessed by keys defined in a resource map. Annotated icons in form "key[annotation1,annotation2]" are supported.
IconAnnotation
Field Summary | |
---|---|
private IconRegistry |
parent
The parent registry to ask first if there is a request for an icon. |
private String |
prefix
The prefix to use when loading icons from the resource map. |
private Map<String,Icon> |
registry
Registry of loaded icons. |
private org.jdesktop.application.ResourceMap |
resourceMap
The resource map to load icons from. |
Constructor Summary | |
---|---|
IconRegistry(IconRegistry parent,
org.jdesktop.application.ResourceMap resourceMap,
String prefix)
Creates an icon registry that loads its icons according to the keys stored in the specified resource map. |
Method Summary | |
---|---|
Icon |
getIcon(String key)
Returns an icon for the specified key. |
private Icon |
load(String key)
Loads an icon with the specified key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final IconRegistry parent
private final org.jdesktop.application.ResourceMap resourceMap
private final Map<String,Icon> registry
private final String prefix
Constructor Detail |
---|
public IconRegistry(IconRegistry parent, org.jdesktop.application.ResourceMap resourceMap, String prefix)
parent
- parent registry to ask first for icons, may be null
.resourceMap
- the resource map to load the icons from.prefix
- the prefix to use when loading icons from the resource map.Method Detail |
---|
private Icon load(String key)
key
- the resource map icon key to load the icon from.
null
if there is no such icon.public Icon getIcon(String key)
The key may be annotated.
key
- the key for wihch to retrieve an icon.
null
if there is no such icon.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG