agg.attribute.util
Class TableRowDragger

java.lang.Object
  extended by agg.attribute.util.TableRowDragger

public class TableRowDragger
extends java.lang.Object

Dragging of table rows.


Field Summary
protected  java.awt.Cursor defaultCursor
           
protected  int draggedRow
           
protected  boolean draggingStarted
           
protected  java.util.Vector<RowDragListener> listener
          Container with observers of this instance, all of which implement the RowDragListener interface.
protected  java.awt.Cursor moveCursor
           
protected  javax.swing.JTable tableView
           
 
Constructor Summary
TableRowDragger(javax.swing.JTable table)
           
 
Method Summary
 void addRowDragListener(RowDragListener li)
           
protected  void fireDraggingMoved(int src, int dest)
           
protected  void fireDraggingStarted(int row)
           
protected  void fireDraggingStopped()
           
 boolean isDraggingActive()
           
 void removeRowDragListener(RowDragListener li)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected transient java.util.Vector<RowDragListener> listener
Container with observers of this instance, all of which implement the RowDragListener interface.


tableView

protected javax.swing.JTable tableView

draggingStarted

protected boolean draggingStarted

draggedRow

protected int draggedRow

defaultCursor

protected java.awt.Cursor defaultCursor

moveCursor

protected java.awt.Cursor moveCursor
Constructor Detail

TableRowDragger

public TableRowDragger(javax.swing.JTable table)
Method Detail

isDraggingActive

public boolean isDraggingActive()

addRowDragListener

public void addRowDragListener(RowDragListener li)

removeRowDragListener

public void removeRowDragListener(RowDragListener li)

fireDraggingStarted

protected void fireDraggingStarted(int row)

fireDraggingStopped

protected void fireDraggingStopped()

fireDraggingMoved

protected void fireDraggingMoved(int src,
                                 int dest)