|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.event.MouseAdapter
|
+--org.moyoman.client.reference.util.PopupListener
Provides a simple listener to activate popup menus. This listener is installed upon the component over which you wish the popup to appear.
| Field Summary | |
private JPopupMenu |
_popup
Handle to the popup menu. |
| Constructor Summary | |
PopupListener(JPopupMenu popup)
Create the listener with a handle to the popup menu. |
|
| Method Summary | |
private void |
maybeShowPopup(MouseEvent e)
Show the popup menu based upon the event type. |
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 |
| Field Detail |
private JPopupMenu _popup
| Constructor Detail |
public PopupListener(JPopupMenu popup)
popup - The popup menu to activate.| Method Detail |
public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenermousePressed in class MouseAdapterpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class MouseAdapterprivate void maybeShowPopup(MouseEvent e)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||