FreeHEP API
Version current

org.freehep.swing.popup
Interface HasPopupItems

All Known Subinterfaces:
HasPopupItems
All Known Implementing Classes:
InternalFramePageManager.MDIDesktopPane, ToolBarHolder

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,v 1.1 2003/08/15 02:20:19 tonyj Exp $
Author:
Tony Johnson (tonyj@slac.stanford.edu)
Source Code:
HasPopupItems.java

Method Summary
 JPopupMenu modifyPopupMenu(JPopupMenu menu, Component source, Point p)
          Allows a component to create or modify a popup menu
 

Method Detail

modifyPopupMenu

public 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 descendents
source - The deepest component
Returns:
The modified menu

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.