edu.rice.cs.drjava.ui
Class JUnitPanel.JUnitErrorListPane.PopupAdapter

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by edu.rice.cs.util.swing.RightClickMouseAdapter
          extended by edu.rice.cs.drjava.ui.JUnitPanel.JUnitErrorListPane.PopupAdapter
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener
Enclosing class:
JUnitPanel.JUnitErrorListPane

private class JUnitPanel.JUnitErrorListPane.PopupAdapter
extends RightClickMouseAdapter


Constructor Summary
private JUnitPanel.JUnitErrorListPane.PopupAdapter()
           
 
Method Summary
protected  void _popupAction(MouseEvent e)
          Shows the popup menu for this mouse adapter.
private  boolean _selectError(MouseEvent e)
          Select the error at the given mouse event.
 void mousePressed(MouseEvent e)
          Show popup if the click is on an error.
 void mouseReleased(MouseEvent e)
          Show popup if the click is on an error.
 
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
 

Constructor Detail

JUnitPanel.JUnitErrorListPane.PopupAdapter

private JUnitPanel.JUnitErrorListPane.PopupAdapter()
Method Detail

mousePressed

public void mousePressed(MouseEvent e)
Show popup if the click is on an error.

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class RightClickMouseAdapter
Parameters:
e - the MouseEvent correponding to this click

mouseReleased

public void mouseReleased(MouseEvent e)
Show popup if the click is on an error.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class RightClickMouseAdapter
Parameters:
e - the MouseEvent correponding to this click

_selectError

private boolean _selectError(MouseEvent e)
Select the error at the given mouse event.

Parameters:
e - the MouseEvent correponding to this click
Returns:
true iff the mouse click is over an error

_popupAction

protected void _popupAction(MouseEvent e)
Shows the popup menu for this mouse adapter.

Specified by:
_popupAction in class RightClickMouseAdapter
Parameters:
e - the MouseEvent correponding to this click