public class PopupMenuHandler extends Object implements MouseListener, KeyListener
This handler pops-up a popup menu if the corresponding event is a popup menu trigger on a given platform. The
popup-menu is created by the PopupMenuFactory instance passed to the constructor of this class.
PopupMenuFactory| Constructor and Description |
|---|
PopupMenuHandler(PopupMenuFactory popupMenuFactory)
Constructs a new pop-up menu handler for th given pop-up menu factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
keyPressed(KeyEvent event)
Invoked when a key has been pressed.
|
void |
keyReleased(KeyEvent event)
Invoked when a key has been released.
|
void |
keyTyped(KeyEvent event)
Invoked when a key has been typed.
|
void |
mouseClicked(MouseEvent event)
Invoked when the mouse has been clicked on a component.
|
void |
mouseEntered(MouseEvent event)
Invoked when the mouse enters a component.
|
void |
mouseExited(MouseEvent event)
Invoked when the mouse exits a component.
|
void |
mousePressed(MouseEvent event)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(MouseEvent event)
Invoked when a mouse button has been released on a component.
|
public PopupMenuHandler(PopupMenuFactory popupMenuFactory)
popupMenuFactory - the factory for the menu, must not be nullpublic void mouseClicked(MouseEvent event)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent event)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent event)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent event)
mouseExited in interface MouseListenerpublic void keyPressed(KeyEvent event)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent event)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent event)
keyTyped in interface KeyListenerCopyright © 2014–2019 European Space Agency (ESA). All rights reserved.