Package org.graffiti.managers
Class AttributeComponentManager
java.lang.Object
org.graffiti.managers.AttributeComponentManager
- All Implemented Interfaces:
PluginManagerListener
public class AttributeComponentManager extends Object implements PluginManagerListener
Contains the mapping between attribute classes and their representation as
AttributeComponent classes.- Version:
- $Revision: 1.6 $
- Author:
- ph
-
Constructor Summary
Constructors Constructor Description AttributeComponentManager()Constructs an AttributeComponentManager. -
Method Summary
Modifier and Type Method Description AttributeComponentgetAttributeComponent(Class<?> aType)Returns an instance of the AttributeComponent that is capable of drawing the attribute with typeaType.Map<?,?>getAttributeComponents()Returns the map of attribute components.booleanhasAttributeComponent(Class<?> aType)voidpluginAdded(GenericPlugin plugin, PluginDescription desc)Called by the plugin manager, iff a plugin has been added.
-
Constructor Details
-
AttributeComponentManager
public AttributeComponentManager()Constructs an AttributeComponentManager.
-
-
Method Details
-
hasAttributeComponent
-
getAttributeComponent
public AttributeComponent getAttributeComponent(Class<?> aType) throws AttributeComponentNotFoundExceptionReturns an instance of the AttributeComponent that is capable of drawing the attribute with typeaType.- Parameters:
aType- the class of the attribute to retrieve a component for.- Returns:
- an instance of an AttributeComponent.
- Throws:
AttributeComponentNotFoundException- DOCUMENT ME!
-
getAttributeComponents
Returns the map of attribute components.- Returns:
- DOCUMENT ME!
-
pluginAdded
Called by the plugin manager, iff a plugin has been added.- Specified by:
pluginAddedin interfacePluginManagerListener- Parameters:
plugin- the added plugin.desc- the description of the new plugin.
-