Package games.stendhal.client.gui
Class MousePopupAdapter
java.lang.Object
java.awt.event.MouseAdapter
games.stendhal.client.gui.MousePopupAdapter
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
A mouse listener implementation for right click menu triggering to avoid
copying the code everywhere.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected abstract void
showPopup(MouseEvent e)
Called when the operating system dependent popup trigger has been triggered.Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
-
Constructor Details
-
MousePopupAdapter
public MousePopupAdapter()
-
-
Method Details
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMouseAdapter
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classMouseAdapter
-
showPopup
Called when the operating system dependent popup trigger has been triggered. It is still up to the component to decide if it should actually show a popup.- Parameters:
e
-
-