Package org.graffiti.managers
Class EditComponentManager
java.lang.Object
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: 1.8 $
- Author:
- ph
-
Constructor Summary
Constructors Constructor Description EditComponentManager()
Constructs an EditComponentManager. -
Method Summary
Modifier and Type Method Description Map<Class<? extends Displayable>,Class<? extends ValueEditComponent>>
getEditComponents()
Returns the map of value edit components.ValueEditComponent
getValueEditComponent(Displayable aType)
Returns an instance of the ValueEditComponent that is capable of providing a possibility to alter the value of the displayable with typeaType
.void
pluginAdded(GenericPlugin plugin, PluginDescription desc)
Called by the plugin manager, iff a plugin has been added.
-
Constructor Details
-
EditComponentManager
public EditComponentManager()Constructs an EditComponentManager.
-
-
Method Details
-
getEditComponents
Returns the map of value edit components.- Returns:
- DOCUMENT ME!
-
getValueEditComponent
public ValueEditComponent getValueEditComponent(Displayable aType) throws EditComponentNotFoundExceptionReturns an instance of the ValueEditComponent that is capable of providing a possibility to alter the value of the displayable with typeaType
.- Parameters:
aType
- the class of the displayable to retrieve a component for.- Returns:
- an instance of an ValueEditComponent.
- Throws:
EditComponentNotFoundException
- DOCUMENT ME!
-
pluginAdded
Called by the plugin manager, iff a plugin has been added.- Specified by:
pluginAdded
in interfacePluginManagerListener
- Parameters:
plugin
- the added plugin.desc
- the description of the new plugin.
-