public class PMenu extends Object implements MenuListener, Runnable
| Modifier and Type | Method and Description |
|---|---|
JMenu |
getParent(JMenuItem item)
Gets the parent component of an item.
|
void |
menuCanceled(MenuEvent e)
Invoked when the menu is canceled.
|
void |
menuDeselected(MenuEvent e)
Invoked when the menu is deselected.
|
void |
menuSelected(MenuEvent e)
Invoked when a menu is selected.
|
void |
run()
Checks the menu state after menu is gone.
|
static void |
showPopupMenu(PPanel panel,
JPopupMenu m,
Component c,
int x,
int y)
Displays the pop-up menu at position of the component, with the
offset x and y.
|
public JMenu getParent(JMenuItem item)
public static void showPopupMenu(PPanel panel, JPopupMenu m, Component c, int x, int y)
public void menuCanceled(MenuEvent e)
menuCanceled in interface MenuListenerpublic void menuDeselected(MenuEvent e)
menuDeselected in interface MenuListenerpublic void menuSelected(MenuEvent e)
menuSelected in interface MenuListenerPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.