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 Details

    • AttributeComponentManager

      public AttributeComponentManager()
      Constructs an AttributeComponentManager.
  • Method Details

    • hasAttributeComponent

      public boolean hasAttributeComponent​(Class<?> aType)
    • getAttributeComponent

      public AttributeComponent getAttributeComponent​(Class<?> aType) throws AttributeComponentNotFoundException
      Returns an instance of the AttributeComponent that is capable of drawing the attribute with type aType.
      Parameters:
      aType - the class of the attribute to retrieve a component for.
      Returns:
      an instance of an AttributeComponent.
      Throws:
      AttributeComponentNotFoundException - DOCUMENT ME!
    • getAttributeComponents

      public Map<?,​?> getAttributeComponents()
      Returns the map of attribute components.
      Returns:
      DOCUMENT ME!
    • pluginAdded

      public void pluginAdded​(GenericPlugin plugin, PluginDescription desc)
      Called by the plugin manager, iff a plugin has been added.
      Specified by:
      pluginAdded in interface PluginManagerListener
      Parameters:
      plugin - the added plugin.
      desc - the description of the new plugin.