antsnest.datatransfer
Class DefinitionListTransferHandler
java.lang.Object
javax.swing.TransferHandler
antsnest.datatransfer.DefinitionListTransferHandler
- All Implemented Interfaces:
- Serializable
public class DefinitionListTransferHandler
- extends TransferHandler
The handler that sets up data transfer from the definition list
- Author:
- Chris Clohosy
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefinitionListTransferHandler
public DefinitionListTransferHandler()
createTransferable
protected Transferable createTransferable(JComponent c)
- Creates a transferable from a list
- Overrides:
createTransferable in class TransferHandler
- Parameters:
c - the list that holds the Ant element definitions
- Returns:
- a Transferable, the class that handles the data transfer
getSourceActions
public int getSourceActions(JComponent c)
- Informs what transfer actions are supported
- Overrides:
getSourceActions in class TransferHandler
- Parameters:
c - the component using this handler
- Returns:
- an int, the actions supported