org.vizzini.ui
Class PopupListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.vizzini.ui.PopupListener
All Implemented Interfaces:
MouseListener, EventListener

public class PopupListener
extends MouseAdapter

Provides a simple listener to activate popup menus. This listener is installed upon the component over which you wish the popup to appear.

Since:
v0.2
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
PopupListener(JPopupMenu popup)
          Create the listener with a handle to the popup menu.
 
Method Summary
 void mousePressed(MouseEvent e)
          Respond to a mouse pressed event.
 void mouseReleased(MouseEvent e)
          Respond to a mouse released event.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, 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(JPopupMenu popup)
Create the listener with a handle to the popup menu.

Parameters:
popup - The popup menu to activate.
Since:
v0.2
Method Detail

mousePressed

public void mousePressed(MouseEvent e)
Respond to a mouse pressed event.

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter
Since:
v0.2

mouseReleased

public void mouseReleased(MouseEvent e)
Respond to a mouse released event.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter
Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02