org.apache.log4j.chainsaw
Class PopupListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.apache.log4j.chainsaw.PopupListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.util.EventListener

public class PopupListener
extends java.awt.event.MouseAdapter

Ensures that a specific popupMenu is displayed when the relevant mouse events are trapped.

Author:
Scott Deboy , Paul Smith

Constructor Summary
PopupListener(javax.swing.JPopupMenu popupMenu)
           
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupListener

public PopupListener(javax.swing.JPopupMenu popupMenu)
Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class java.awt.event.MouseAdapter

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class java.awt.event.MouseAdapter

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter


Copyright © 2007 Apache Software Foundation. All Rights Reserved.