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

  Fields
  Modifier and Type
  Field
  Description
  `protected RowObjectTableModel<ROW_OBJECT>`
  `rowObjectModel`
  `protected GTable`
  `table`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GTableDragProvider(GTable table, RowObjectTableModel<ROW_OBJECT> model)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected abstract Transferable`
  `createDragTransferable(List<ROW_OBJECT> items)`
  Creates a transferable for dragging using the given selected row objects.
  `void`
  `dragDropEnd(DragSourceDropEvent dsde)`
  `void`
  `dragEnter(DragSourceDragEvent dsde)`
  `void`
  `dragExit(DragSourceEvent dse)`
  `void`
  `dragGestureRecognized(DragGestureEvent dragEvent)`
  `void`
  `dragOver(DragSourceDragEvent dsde)`
  `void`
  `dropActionChanged(DragSourceDragEvent dsde)`
  `protected List<ROW_OBJECT>`
  `getSelectedItems()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### table

    protected GTable table

  - ### rowObjectModel

    protected RowObjectTableModel<ROW_OBJECT> rowObjectModel

- ## Constructor Details

  - ### GTableDragProvider

    public GTableDragProvider(GTable table, RowObjectTableModel<ROW_OBJECT> model)

- ## Method Details

  - ### createDragTransferable

    protected abstract Transferable createDragTransferable(List<ROW_OBJECT> items)
    Creates a transferable for dragging using the given selected row objects.
    Parameters:
      `items` - the selected row objects
    Returns:
      the transferable

  - ### dragDropEnd

    public void dragDropEnd(DragSourceDropEvent dsde)
    Specified by:
      `dragDropEnd` in interface `DragSourceListener`

  - ### dragEnter

    public void dragEnter(DragSourceDragEvent dsde)
    Specified by:
      `dragEnter` in interface `DragSourceListener`

  - ### dragExit

    public void dragExit(DragSourceEvent dse)
    Specified by:
      `dragExit` in interface `DragSourceListener`

  - ### dragOver

    public void dragOver(DragSourceDragEvent dsde)
    Specified by:
      `dragOver` in interface `DragSourceListener`

  - ### dropActionChanged

    public void dropActionChanged(DragSourceDragEvent dsde)
    Specified by:
      `dropActionChanged` in interface `DragSourceListener`

  - ### dragGestureRecognized

    public void dragGestureRecognized(DragGestureEvent dragEvent)
    Specified by:
      `dragGestureRecognized` in interface `DragGestureListener`

  - ### getSelectedItems

    protected List<ROW_OBJECT> getSelectedItems()