Top Description Constructors Methods
javax.swing.plaf

public abstract Class PopupMenuUI

extends ComponentUI
Class Inheritance
Known Direct Subclasses
javax.swing.plaf.basic.BasicPopupMenuUI, javax.swing.plaf.multi.MultiPopupMenuUI
Imports
java.awt.event.MouseEvent, javax.swing.Popup, .PopupFactory, .JPopupMenu

Pluggable look and feel interface for JPopupMenu.
Authors
Georges Saab, David Karlton

Constructor Summary

AccessConstructor and Description
protected
PopupMenuUI()

Constructor for subclasses to call.

Method Summary

Modifier and TypeMethod and Description
public Popup

Returns:

Popup that will show the JPopupMenu
getPopup
(JPopupMenu
JPopupMenu requesting Popup
popup
,
int
Screen x location Popup is to be shown at
x
,
int
Screen y location Popup is to be shown at.
y
)

Returns the Popup that will be responsible for displaying the JPopupMenu.

public boolean

Returns:

true if the MouseEvent e is the popup menu trigger
isPopupTrigger
(MouseEvent
a MouseEvent
e
)

Returns whether or not the given MouseEvent is the popup menu trigger event for the platform

Inherited from javax.swing.plaf.ComponentUI:
containscreateUIgetAccessibleChildgetAccessibleChildrenCountgetBaselinegetBaselineResizeBehaviorgetMaximumSizegetMinimumSizegetPreferredSizeinstallUIpaintuninstallUIupdate

Constructor Detail

PopupMenuUIback to summary
protected PopupMenuUI()

Constructor for subclasses to call.

Method Detail

getPopupback to summary
public Popup getPopup(JPopupMenu popup, int x, int y)

Returns the Popup that will be responsible for displaying the JPopupMenu.

Parameters
popup:JPopupMenu

JPopupMenu requesting Popup

x:int

Screen x location Popup is to be shown at

y:int

Screen y location Popup is to be shown at.

Returns:Popup

Popup that will show the JPopupMenu

Since
1.4
isPopupTriggerback to summary
public boolean isPopupTrigger(MouseEvent e)

Returns whether or not the given MouseEvent is the popup menu trigger event for the platform

Parameters
e:MouseEvent

a MouseEvent

Returns:boolean

true if the MouseEvent e is the popup menu trigger

Since
1.3