org.openpermis.editor.policy.gui.icon
Class IconRegistryConverter

java.lang.Object
  extended by org.jdesktop.application.ResourceConverter
      extended by org.openpermis.editor.policy.gui.icon.IconRegistryConverter

public final class IconRegistryConverter
extends org.jdesktop.application.ResourceConverter

Resource converter that looks up icon keys in an icon registry.

An icon key is a key enclosed in angle brackets, e.g. <foo>. Icon keys may have annotations as in the following example: <foo[add,error]>.

Since:
0.3.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.application.ResourceConverter
org.jdesktop.application.ResourceConverter.ResourceConverterException
 
Field Summary
 
Fields inherited from class org.jdesktop.application.ResourceConverter
type
 
Method Summary
static void activate(IconRegistry iconRegistry)
          Initializes the singleton resource converter.
static void initialize()
          Reserves a resource converter slot for the icon registry converter.
 Object parseString(String key, org.jdesktop.application.ResourceMap resourceMap)
           
 boolean supportsType(Class type)
           
 
Methods inherited from class org.jdesktop.application.ResourceConverter
forType, register, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

public static void initialize()
Reserves a resource converter slot for the icon registry converter.

The slot has to be reserver prior to initialization of the default icon resource converter since the converter cannot be removed once its registered.

Since:
0.3.0

activate

public static void activate(IconRegistry iconRegistry)
Initializes the singleton resource converter.

Parameters:
iconRegistry - the icon registry to use.
Since:
0.3.0

parseString

public Object parseString(String key,
                          org.jdesktop.application.ResourceMap resourceMap)
                   throws org.jdesktop.application.ResourceConverter.ResourceConverterException
Specified by:
parseString in class org.jdesktop.application.ResourceConverter
Throws:
org.jdesktop.application.ResourceConverter.ResourceConverterException
Since:
0.3.0

supportsType

public boolean supportsType(Class type)
Overrides:
supportsType in class org.jdesktop.application.ResourceConverter
Since:
0.3.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG