java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PopupMenuUI
- 直接已知的子类:
-
BasicPopupMenuUI
,MultiPopupMenuUI
JPopupMenu的可插拔外观接口。
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPopup
(JPopupMenu popup, int x, int y) 返回将负责显示JPopupMenu的Popup。boolean
返回给定的MouseEvent是否是平台的弹出菜单触发事件。Methods declared in class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
Constructor Details
-
PopupMenuUI
protected PopupMenuUI()子类调用的构造函数。
-
-
Method Details
-
isPopupTrigger
返回给定的MouseEvent是否是平台的弹出菜单触发事件。- 参数:
-
e
- 一个MouseEvent
- 返回:
-
如果
MouseEvent e
是弹出菜单触发事件,则返回true - 自版本:
- 1.3
-
getPopup
返回将负责显示JPopupMenu的Popup。- 参数:
-
popup
- 请求Popup的JPopupMenu -
x
- 要显示Popup的屏幕x位置 -
y
- 要显示Popup的屏幕y位置 - 返回:
- 将显示JPopupMenu的Popup
- 自版本:
- 1.4
-