Package docking.dnd
Class GTableDragProvider<ROW_OBJECT>
java.lang.Object
docking.dnd.GTableDragProvider<ROW_OBJECT>
- Type Parameters:
ROW_OBJECT
- the row object type
- All Implemented Interfaces:
DragGestureListener
,DragSourceListener
,EventListener
public abstract class GTableDragProvider<ROW_OBJECT>
extends Object
implements DragSourceListener, DragGestureListener
A class to allow GTables to support drag operations.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Transferable
createDragTransferable
(List<ROW_OBJECT> items) Creates a transferable for dragging using the given selected row objects.void
void
dragEnter
(DragSourceDragEvent dsde) void
dragExit
(DragSourceEvent dse) void
dragGestureRecognized
(DragGestureEvent dragEvent) void
dragOver
(DragSourceDragEvent dsde) void
protected List
<ROW_OBJECT>
-
Field Details
-
table
-
rowObjectModel
-
-
Constructor Details
-
GTableDragProvider
-
-
Method Details
-
createDragTransferable
Creates a transferable for dragging using the given selected row objects.- Parameters:
items
- the selected row objects- Returns:
- the transferable
-
dragDropEnd
- Specified by:
dragDropEnd
in interfaceDragSourceListener
-
dragEnter
- Specified by:
dragEnter
in interfaceDragSourceListener
-
dragExit
- Specified by:
dragExit
in interfaceDragSourceListener
-
dragOver
- Specified by:
dragOver
in interfaceDragSourceListener
-
dropActionChanged
- Specified by:
dropActionChanged
in interfaceDragSourceListener
-
dragGestureRecognized
- Specified by:
dragGestureRecognized
in interfaceDragGestureListener
-
getSelectedItems
-