org.freehep.swing.popup
Interface HasPopupItems
public interface HasPopupItems
Implemented by any component that wants to contribute to a popup menu.
When an Application processes a popup trigger event it searches for the
deepest component beneath event, then works up throught all the parents
checking each component in turn to see if it implements HasPopupItems, and
it so calling its modifyPopupMenu item.
- Version:
- $Id: HasPopupItems.java 8584 2006-08-10 23:06:37Z duns $
- Author:
- Tony Johnson (tonyj@slac.stanford.edu)
modifyPopupMenu
JPopupMenu modifyPopupMenu(JPopupMenu menu,
Component source,
Point p)
- Allows a component to create or modify a popup menu
- Parameters:
menu
- The menu created by the components descendentssource
- The deepest component
- Returns:
- The modified menu
Copyright © 2000-2007 FreeHEP. All Rights Reserved.