Package jmri.jmrix.can.cbus.swing
Class CbusTableRowEventDnDHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- jmri.jmrix.can.cbus.swing.CbusTableRowEventDnDHandler
-
- All Implemented Interfaces:
java.awt.dnd.DragSourceMotionListener
,java.io.Serializable
,java.util.EventListener
public class CbusTableRowEventDnDHandler extends javax.swing.TransferHandler implements java.awt.dnd.DragSourceMotionListener
Drag and drop handler for CBUS Events being dragged from a table.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CbusTableRowEventDnDHandler(CanSystemConnectionMemo memo, javax.swing.JTable table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.datatransfer.Transferable
createTransferable(javax.swing.JComponent c)
void
dispose()
void
dragMouseMoved(java.awt.dnd.DragSourceDragEvent e)
int
getSourceActions(javax.swing.JComponent c)
(package private) void
initFrame()
protected void
mouseMoved(int x, int y)
-
-
-
Constructor Detail
-
CbusTableRowEventDnDHandler
public CbusTableRowEventDnDHandler(CanSystemConnectionMemo memo, javax.swing.JTable table)
-
-
Method Detail
-
initFrame
final void initFrame()
-
dragMouseMoved
public void dragMouseMoved(java.awt.dnd.DragSourceDragEvent e)
- Specified by:
dragMouseMoved
in interfacejava.awt.dnd.DragSourceMotionListener
-
mouseMoved
protected void mouseMoved(int x, int y)
-
getSourceActions
public int getSourceActions(javax.swing.JComponent c)
- Overrides:
getSourceActions
in classjavax.swing.TransferHandler
-
createTransferable
public java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
- Overrides:
createTransferable
in classjavax.swing.TransferHandler
-
dispose
public void dispose()
-
-