org.browsecode.helpers.reorderablelistpanel
Class ReorderableTransferHandler<T>

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by org.browsecode.helpers.reorderablelistpanel.ReorderableTransferHandler<T>
All Implemented Interfaces:
java.io.Serializable

public class ReorderableTransferHandler<T>
extends javax.swing.TransferHandler

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
ReorderableTransferHandler(ReorderableListPanel<T> reorderableSample)
           
 
Method Summary
 boolean canImport(javax.swing.JComponent recievingComponent, java.awt.datatransfer.DataFlavor[] flavors)
           
protected  boolean checkImportExport(java.awt.datatransfer.Transferable t)
           
 java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
          formerly protected
protected  boolean doImportExport(javax.swing.JComponent source, java.awt.datatransfer.Transferable t, int action)
           
protected  void exportDone(javax.swing.JComponent source, java.awt.datatransfer.Transferable data, int action)
           
protected  java.lang.Object getNewParent(ReorderableListPanel parent)
           
 int getSourceActions(javax.swing.JComponent c)
           
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
           
 boolean importData(javax.swing.JComponent destination, java.awt.datatransfer.Transferable t)
           
 
Methods inherited from class javax.swing.TransferHandler
exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReorderableTransferHandler

public ReorderableTransferHandler(ReorderableListPanel<T> reorderableSample)
Method Detail

importData

public boolean importData(javax.swing.JComponent destination,
                          java.awt.datatransfer.Transferable t)
Overrides:
importData in class javax.swing.TransferHandler

createTransferable

public java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
formerly protected

Overrides:
createTransferable in class javax.swing.TransferHandler

getSourceActions

public int getSourceActions(javax.swing.JComponent c)
Overrides:
getSourceActions in class javax.swing.TransferHandler

getNewParent

protected java.lang.Object getNewParent(ReorderableListPanel parent)

checkImportExport

protected boolean checkImportExport(java.awt.datatransfer.Transferable t)

doImportExport

protected boolean doImportExport(javax.swing.JComponent source,
                                 java.awt.datatransfer.Transferable t,
                                 int action)

exportDone

protected void exportDone(javax.swing.JComponent source,
                          java.awt.datatransfer.Transferable data,
                          int action)
Overrides:
exportDone in class javax.swing.TransferHandler

canImport

public boolean canImport(javax.swing.JComponent recievingComponent,
                         java.awt.datatransfer.DataFlavor[] flavors)
Overrides:
canImport in class javax.swing.TransferHandler

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()