org.formaria.swing.dnd
Class TransferHandlerFactory

java.lang.Object
  extended by org.formaria.aria.registry.RegistrationFactory
      extended by org.formaria.swing.dnd.TransferHandlerFactory

public class TransferHandlerFactory
extends RegistrationFactory

A factory for transfer handlers

Copyright (c) Formaria Ltd., 2008. See license.txt for more details


Field Summary
static java.lang.String FACTORY_OBJECT_NAME
           
 
Fields inherited from class org.formaria.aria.registry.RegistrationFactory
changeCounter, CLASS_MATCH, configFiles, handlerRegisters, INSPECTOR_MATCH, INSTANCE_MATCH, INTERFACE_MATCH, localChangeCounter
 
Constructor Summary
protected TransferHandlerFactory(Project project)
           
 
Method Summary
 java.lang.String getFactoryName()
          Get the name of this factory
static TransferHandlerFactory getInstance(Project project)
          Get an instance of the factory, registering with the project if necessary
 javax.swing.TransferHandler getTransferHandler(java.lang.Object comp, java.util.Hashtable instanceConfig)
          Creates a new instance of TransferHandler for a particular type
 
Methods inherited from class org.formaria.aria.registry.RegistrationFactory
addConfigFile, addRegistrationTypes, checkRegistration, doRead, doRead, doRead, getObject, read, read, read, updateConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY_OBJECT_NAME

public static final java.lang.String FACTORY_OBJECT_NAME
See Also:
Constant Field Values
Constructor Detail

TransferHandlerFactory

protected TransferHandlerFactory(Project project)
Method Detail

getFactoryName

public java.lang.String getFactoryName()
Get the name of this factory

Specified by:
getFactoryName in class RegistrationFactory
Returns:
the factory name i.e. TransferHandlerFactory

getInstance

public static TransferHandlerFactory getInstance(Project project)
Get an instance of the factory, registering with the project if necessary

Parameters:
the - project
Returns:
the factory beonging to this project

getTransferHandler

public javax.swing.TransferHandler getTransferHandler(java.lang.Object comp,
                                                      java.util.Hashtable instanceConfig)
Creates a new instance of TransferHandler for a particular type

Parameters:
comp - the source component
instanceConfig - the instance configuration attributes
Returns:
the new transfer handler