edu.rice.cs.drjava.ui
Class DebugPanel.DebugTableMouseAdapter

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by edu.rice.cs.util.swing.RightClickMouseAdapter
          extended by edu.rice.cs.drjava.ui.DebugPanel.DebugTableMouseAdapter
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener
Direct Known Subclasses:
DebugPanel.StackMouseAdapter, DebugPanel.ThreadMouseAdapter
Enclosing class:
DebugPanel

private abstract class DebugPanel.DebugTableMouseAdapter
extends RightClickMouseAdapter

A mouse adapter that allows for double-clicking and bringing up a right-click menu.


Field Summary
protected  int _lastRow
           
protected  JTable _table
           
 
Constructor Summary
DebugPanel.DebugTableMouseAdapter(JTable table)
           
 
Method Summary
protected abstract  void _action()
           
protected  void _popupAction(MouseEvent e)
          Performs the action when the popup trigger is received.
protected abstract  void _showPopup(MouseEvent e)
           
 void mousePressed(MouseEvent e)
          Signals that the mouse has been pressed.
 
Methods inherited from class edu.rice.cs.util.swing.RightClickMouseAdapter
mouseReleased
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_table

protected JTable _table

_lastRow

protected int _lastRow
Constructor Detail

DebugPanel.DebugTableMouseAdapter

public DebugPanel.DebugTableMouseAdapter(JTable table)
Method Detail

_showPopup

protected abstract void _showPopup(MouseEvent e)

_action

protected abstract void _action()

_popupAction

protected void _popupAction(MouseEvent e)
Description copied from class: RightClickMouseAdapter
Performs the action when the popup trigger is received. Generally shows a popup context menu.

Specified by:
_popupAction in class RightClickMouseAdapter
Parameters:
e - the MouseEvent that is a popup trigger

mousePressed

public void mousePressed(MouseEvent e)
Description copied from class: RightClickMouseAdapter
Signals that the mouse has been pressed.

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class RightClickMouseAdapter
Parameters:
e - the MouseEvent that just occurred