net.xoetrope.swing.dnd
Class XTransferHandlerFactory
java.lang.Object
net.xoetrope.xui.registry.XRegistrationFactory
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
|
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 |
FACTORY_OBJECT_NAME
public static final java.lang.String FACTORY_OBJECT_NAME
- See Also:
- Constant Field Values
XTransferHandlerFactory
protected XTransferHandlerFactory(XProject project)
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 componentinstanceConfig - the instance configuration attributes
- Returns:
- the new transfer handler