org.graffiti.managers
Class EditComponentManager

java.lang.Object
  extended by org.graffiti.managers.EditComponentManager
All Implemented Interfaces:
PluginManagerListener

public class EditComponentManager
extends Object
implements PluginManagerListener

Contains the mapping between displayable classes and their representation as AttributeComponent classes.

Version:
$Revision: 5768 $
Author:
ph

Constructor Summary
EditComponentManager()
          Constructs an EditComponentManager.
 
Method Summary
 Map<Class<?>,Class<?>> getEditComponents()
          Returns the map of value edit components.
 ValueEditComponent getValueEditComponent(Class<?> aType, Displayable<?> displayable)
          Returns an instance of the ValueEditComponent that is capable of providing a possibility to alter the value of the displayable with type aType.
 void pluginAdded(GenericPlugin plugin, PluginDescription desc)
          Called by the plugin manager, iff a plugin has been added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditComponentManager

public EditComponentManager()
Constructs an EditComponentManager.

Method Detail

getEditComponents

public Map<Class<?>,Class<?>> getEditComponents()
Returns the map of value edit components.

Returns:
DOCUMENT ME!

getValueEditComponent

public ValueEditComponent getValueEditComponent(Class<?> aType,
                                                Displayable<?> displayable)
                                         throws EditComponentNotFoundException
Returns an instance of the ValueEditComponent that is capable of providing a possibility to alter the value of the displayable with type aType.

Parameters:
aType - the class of the displayable to retrieve a component for.
Returns:
an instance of an ValueEditComponent.
Throws:
EditComponentNotFoundException - 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.


Generated at 2012-05-30 11:00:36 PM CEST