org.browsecode.helpers.popupmenutools
Class PopupMenuShower

java.lang.Object
  extended by org.browsecode.helpers.popupmenutools.PopupMenuShower
All Implemented Interfaces:
java.awt.event.MouseListener, java.util.EventListener

public class PopupMenuShower
extends java.lang.Object
implements java.awt.event.MouseListener


Constructor Summary
PopupMenuShower(javax.swing.JPopupMenu jmenu, java.awt.Component componentToPopUpOn)
           
 
Method Summary
 void checkForPopup(java.awt.event.MouseEvent e)
           
 void doShowPopup(java.awt.Component c, int x, int y)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupMenuShower

public PopupMenuShower(javax.swing.JPopupMenu jmenu,
                       java.awt.Component componentToPopUpOn)
Method Detail

doShowPopup

public void doShowPopup(java.awt.Component c,
                        int x,
                        int y)

checkForPopup

public void checkForPopup(java.awt.event.MouseEvent e)

mouseClicked

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

mousePressed

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

mouseReleased

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

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener