antsnest.datatransfer
Class DefinitionListTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by 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

Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
DefinitionListTransferHandler()
           
 
Method Summary
protected  Transferable createTransferable(JComponent c)
          Creates a transferable from a list
 int getSourceActions(JComponent c)
          Informs what transfer actions are supported
 
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinitionListTransferHandler

public DefinitionListTransferHandler()
Method Detail

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