net.sf.sdedit.ui.components.configuration
Class ConfiguratorFactory<C extends DataObject>

java.lang.Object
  extended by net.sf.sdedit.ui.components.configuration.ConfiguratorFactory<C>
Type Parameters:
B - the bean for whose properties this ConfiguratorFactory creates Configurators

public class ConfiguratorFactory<C extends DataObject>
extends Object

A ConfiguratorFactory creates specialized Configurator objects, depending on the type of property to be configured.

Author:
Markus Strauch

Constructor Summary
ConfiguratorFactory()
           
 
Method Summary
 Configurator<?,C> createConfigurator(Bean<C> bean, PropertyDescriptor property, Bean<C> defaultConfiguration)
          Creates a specialized configurator for a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguratorFactory

public ConfiguratorFactory()
Method Detail

createConfigurator

public Configurator<?,C> createConfigurator(Bean<C> bean,
                                            PropertyDescriptor property,
                                            Bean<C> defaultConfiguration)
Creates a specialized configurator for a property.

Parameters:
bean - the bean to which the property belongs
property - the descriptor of the property
defaultConfiguration - a bean with values
Returns:
a specialized configurator for the property


Copyright © 2011. All Rights Reserved.