net.xoetrope.swing.dnd
Class XTransferHandlerFactory

java.lang.Object
  extended by net.xoetrope.xui.registry.XRegistrationFactory
      extended by net.xoetrope.swing.dnd.XTransferHandlerFactory

public class XTransferHandlerFactory
extends XRegistrationFactory

A factory for transfer handlers

Copyright (c) Xoetrope Ltd., 1998-2006. See license.txt for more details


Field Summary
static java.lang.String FACTORY_OBJECT_NAME
           
 
Fields inherited from class net.xoetrope.xui.registry.XRegistrationFactory
changeCounter, CLASS_MATCH, configFiles, handlerRegisters, INSPECTOR_MATCH, INSTANCE_MATCH, INTERFACE_MATCH, localChangeCounter
 
Constructor Summary
protected XTransferHandlerFactory(XProject project)
           
 
Method Summary
 java.lang.String getFactoryName()
          Get the name of this factory
static XTransferHandlerFactory getInstance(XProject 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 net.xoetrope.xui.registry.XRegistrationFactory
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

XTransferHandlerFactory

protected XTransferHandlerFactory(XProject project)
Method Detail

getFactoryName

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

Specified by:
getFactoryName in class XRegistrationFactory
Returns:
the factory name i.e. XTransferHandlerFactory

getInstance

public static XTransferHandlerFactory getInstance(XProject 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