站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

PopupMenuProvider (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.action
Interface PopupMenuProvider


public interface PopupMenuProvider

This interface provides a popup menu.


Method Summary
 JPopupMenu getPopupMenu(Widget widget, Point localLocation)
          Get a JPopupMenu to display in the context of the given Widget.
 

Method Detail

getPopupMenu

JPopupMenu getPopupMenu(Widget widget,
                        Point localLocation)
Get a JPopupMenu to display in the context of the given Widget. This method may return null. If that is the case, no popup menu will be displayed if this PopupMenuAction gets a valid popup trigger on the given Widget.

Parameters:
widget - the widget
localLocation - the local location where the popup menu was invoked
Returns:
The JPopupMenu to display for the given Widget. May be null.

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.