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

JPopupMenuUtils (NetBeans UI Utilities API) - NetBeans API Javadoc 5.0.0

 

org.openide.awt
Class JPopupMenuUtils

java.lang.Object
  extended byorg.openide.awt.JPopupMenuUtils

public class JPopupMenuUtils
extends Object

A class that contains a set of utility classes and methods around displaying and positioning popup menus. Popup menus sometimes need to be repositioned so that they don't "fall off" the edges of the screen. Some of the menus have items that are added dynamically, that is, after the menu is displayed. These menus are often placed correctly for their initial size, but will need to be repositioned as they grow.


Constructor Summary
JPopupMenuUtils()
           
 
Method Summary
static void dynamicChange(JPopupMenu popup, boolean usedToBeContained)
           
static void dynamicChangeToSubmenu(JPopupMenu popup, boolean usedToBeContained)
           
static Rectangle getScreenRect()
           
static boolean isPopupContained(JPopupMenu popup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPopupMenuUtils

public JPopupMenuUtils()
Method Detail

dynamicChange

public static void dynamicChange(JPopupMenu popup,
                                 boolean usedToBeContained)

dynamicChangeToSubmenu

public static void dynamicChangeToSubmenu(JPopupMenu popup,
                                          boolean usedToBeContained)

isPopupContained

public static boolean isPopupContained(JPopupMenu popup)

getScreenRect

public static Rectangle getScreenRect()

 

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