Package com.jsql.view.swing.list
Class MouseAdapterMenuAction
java.lang.Object
java.awt.event.MouseAdapter
com.jsql.view.swing.list.MouseAdapterMenuAction
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
A Mouse action to display a popupmenu on a JList.
-
Constructor Summary
ConstructorDescriptionMouseAdapterMenuAction
(DnDList dndList) Create a popup menu for current JList item. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
showPopup
(MouseEvent mouseEvent) Displays a popup menu for JList.Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
-
Constructor Details
-
MouseAdapterMenuAction
Create a popup menu for current JList item.- Parameters:
dndList
- List with action
-
-
Method Details
-
showPopup
Displays a popup menu for JList.- Parameters:
mouseEvent
- Mouse event
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMouseAdapter
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classMouseAdapter
-