de.matthiasmann.twl
Interface TableBase.DragListener

Enclosing class:
TableBase

public static interface TableBase.DragListener


Method Summary
 void dragCanceled()
          Called when the mouse drag is canceled (eg by pressing ESCAPE)
 MouseCursor dragged(Event evt)
          Mouse dragging in progress
 boolean dragStarted(int row, int col, Event evt)
          Signals the start of the drag operation
 void dragStopped(Event evt)
          Mouse dragging stopped
 

Method Detail

dragStarted

boolean dragStarted(int row,
                    int col,
                    Event evt)
Signals the start of the drag operation

Parameters:
row - the row where the drag started
col - the column where the drag started
evt - the mouse event which started the drag
Returns:
true if the drag should start, false if it should be canceled

dragged

MouseCursor dragged(Event evt)
Mouse dragging in progress

Parameters:
evt - the MOUSE_DRAGGED event
Returns:
the mouse cursor to display

dragStopped

void dragStopped(Event evt)
Mouse dragging stopped

Parameters:
evt - the event which stopped the mouse drag

dragCanceled

void dragCanceled()
Called when the mouse drag is canceled (eg by pressing ESCAPE)