Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.merlotxml.merlot
Class DNDJTreeTable  view DNDJTreeTable download DNDJTreeTable.java

java.lang.Object
  extended byJTreeTable
      extended byorg.merlotxml.merlot.DNDJTreeTable
All Implemented Interfaces:
java.awt.dnd.DragGestureListener, java.awt.dnd.DropTargetListener, java.util.EventListener
Direct Known Subclasses:
GD_JTreeTable

public class DNDJTreeTable
extends JTreeTable
implements java.awt.dnd.DragGestureListener, java.awt.dnd.DropTargetListener

JTreeTable which implements drag and drop operations

Version:
$Id: DNDJTreeTable.java,v 1.2 2001/07/04 09:26:49 flament Exp $

Nested Class Summary
(package private) static class DNDJTreeTable.MyDragSourceListener
           
 
Field Summary
protected  boolean _before
           
protected  java.awt.Rectangle _dndhint
           
protected  java.awt.dnd.DragSource _dragSource
           
(package private) static java.awt.dnd.DragSourceListener _dragSourceListener
           
protected  java.awt.dnd.DropTarget _dropTarget
           
protected  java.awt.Rectangle _hintBig
           
protected  java.awt.Rectangle _hintSmall
           
protected  boolean _inside
           
protected  int _lastrow
           
protected  TreeTableModel _model
           
protected  java.awt.Rectangle _oldrp
           
 
Constructor Summary
DNDJTreeTable(TreeTableModel m)
           
 
Method Summary
 void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
          Called when the cursor hotspot enters a drop site which will accept the drag.
 void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
          Called when the cursor hotspot moves outside of a drop site which will accept the drag.
 void dragGestureRecognized(java.awt.dnd.DragGestureEvent dragGestureEvent)
          Called when the native platform notifies the virtual machine that a drag-and-drop has been initiated.
 void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
          Called when the cursor hotspot moves inside of a drop site which will accept the drag.
 void drop(java.awt.dnd.DropTargetDropEvent dropTargetDropEvent)
          Called when the drag operation has terminated with a drop.
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
          Called when the user modifies the drop gesture.
 void paint(java.awt.Graphics g)
           
 void resetDragHint()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dragSource

protected java.awt.dnd.DragSource _dragSource

_dropTarget

protected java.awt.dnd.DropTarget _dropTarget

_lastrow

protected int _lastrow

_oldrp

protected java.awt.Rectangle _oldrp

_dndhint

protected java.awt.Rectangle _dndhint

_hintBig

protected java.awt.Rectangle _hintBig

_hintSmall

protected java.awt.Rectangle _hintSmall

_inside

protected boolean _inside

_before

protected boolean _before

_model

protected TreeTableModel _model

_dragSourceListener

static final java.awt.dnd.DragSourceListener _dragSourceListener
Constructor Detail

DNDJTreeTable

public DNDJTreeTable(TreeTableModel m)
Method Detail

paint

public void paint(java.awt.Graphics g)

dragGestureRecognized

public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dragGestureEvent)
Description copied from interface: java.awt.dnd.DragGestureListener
Called when the native platform notifies the virtual machine that a drag-and-drop has been initiated.

Specified by:
dragGestureRecognized in interface java.awt.dnd.DragGestureListener

dragEnter

public void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the cursor hotspot enters a drop site which will accept the drag.

Specified by:
dragEnter in interface java.awt.dnd.DropTargetListener

dragExit

public void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the cursor hotspot moves outside of a drop site which will accept the drag. This could also happen if the drop site is no longer active, or no longer accepts the drag.

Specified by:
dragExit in interface java.awt.dnd.DropTargetListener

dragOver

public void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the cursor hotspot moves inside of a drop site which will accept the drag.

Specified by:
dragOver in interface java.awt.dnd.DropTargetListener

resetDragHint

public void resetDragHint()

dropActionChanged

public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the user modifies the drop gesture. This is often the case when additional mouse or key events are received during the drag.

Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener

drop

public void drop(java.awt.dnd.DropTargetDropEvent dropTargetDropEvent)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the drag operation has terminated with a drop.

Specified by:
drop in interface java.awt.dnd.DropTargetListener