Package com.moneydance.awt
Class ListReorderingHandler
java.lang.Object
javax.swing.TransferHandler
com.moneydance.awt.ListReorderingHandler
- All Implemented Interfaces:
java.io.Serializable
public class ListReorderingHandler
extends javax.swing.TransferHandler
Utility class that enables dragging and dropping of items to reorder a list
- See Also:
- Serialized Form
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and Type Method Description boolean
canImport(javax.swing.TransferHandler.TransferSupport info)
protected java.awt.datatransfer.Transferable
createTransferable(javax.swing.JComponent c)
static void
enableDragToReorder(javax.swing.JList list)
protected void
exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable data, int action)
int
getSourceActions(javax.swing.JComponent c)
boolean
importData(javax.swing.TransferHandler.TransferSupport info)
-
Method Details
-
enableDragToReorder
public static void enableDragToReorder(javax.swing.JList list) -
createTransferable
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)- Overrides:
createTransferable
in classjavax.swing.TransferHandler
-
canImport
public boolean canImport(javax.swing.TransferHandler.TransferSupport info)- Overrides:
canImport
in classjavax.swing.TransferHandler
-
getSourceActions
public int getSourceActions(javax.swing.JComponent c)- Overrides:
getSourceActions
in classjavax.swing.TransferHandler
-
importData
public boolean importData(javax.swing.TransferHandler.TransferSupport info)- Overrides:
importData
in classjavax.swing.TransferHandler
-
exportDone
protected void exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable data, int action)- Overrides:
exportDone
in classjavax.swing.TransferHandler
-