|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.PopupMenuUI
public abstract class PopupMenuUI
An abstract base class for delegates that implement the pluggable
look and feel for a JPopupMenu.
JPopupMenu| Constructor Summary | |
|---|---|
PopupMenuUI()
Constructs a new PopupMenuUI. |
|
| Method Summary | |
|---|---|
Popup |
getPopup(JPopupMenu popup,
int x,
int y)
Creates a Popup for displaying the popup menu. |
boolean |
isPopupTrigger(MouseEvent event)
Tests whether or not a mouse event triggers a popup menu. |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PopupMenuUI()
PopupMenuUI.
| Method Detail |
|---|
public boolean isPopupTrigger(MouseEvent event)
The default implementation calls
event.isPopupTrigger(), which checks for the gesture
that is common for the platform on which the application runs. If
a look and feel wants to employ non-standard conventions for
triggering a popup menu, it can override this method.
event - the event to check.
true if the event triggers a popup menu;
false otherwise.
public Popup getPopup(JPopupMenu popup,
int x,
int y)
Popup for displaying the popup menu. The
default implementation uses the PopupFactory
for retrieving a suitable Popup, but subclasses
might want to override this method if a LookAndFeel needs special
Popups.
popup - the JPopupMenu for whose display
a Popup is needed.x - the horizontal position where the popup will be
displayed.y - the vertical position where the popup will be
displayed.
Popup for showing and hiding
the menu.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||