Package gov.nih.mipav.view
Class ViewMenuBuilder.MenuDragOp.MenuMouse
- java.lang.Object
-
- gov.nih.mipav.view.ViewMenuBuilder.MenuDragOp.MenuMouse
-
- All Implemented Interfaces:
java.awt.event.AWTEventListener
,java.awt.event.MouseListener
,java.util.EventListener
- Enclosing class:
- ViewMenuBuilder.MenuDragOp
private class ViewMenuBuilder.MenuDragOp.MenuMouse extends java.lang.Object implements java.awt.event.MouseListener, java.awt.event.AWTEventListener
Class for listening to mouse events after a candidate menu is being dragged.- Author:
- senseneyj
-
-
Field Summary
Fields Modifier and Type Field Description private ViewMenuBuilder
build
private int
button
private int
index
private javax.swing.JComponent
parent
-
Constructor Summary
Constructors Constructor Description MenuMouse(int button, javax.swing.JComponent parent, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.swing.JMenuItem
buildItem(javax.swing.JMenuItem tempItem, java.lang.Object parentMenu)
private void
dispose()
void
eventDispatched(java.awt.AWTEvent event)
void
mouseClicked(java.awt.event.MouseEvent e)
void
mouseEntered(java.awt.event.MouseEvent e)
void
mouseExited(java.awt.event.MouseEvent e)
void
mousePressed(java.awt.event.MouseEvent e)
void
mouseReleased(java.awt.event.MouseEvent e)
-
-
-
Field Detail
-
button
private int button
-
parent
private javax.swing.JComponent parent
-
index
private int index
-
build
private ViewMenuBuilder build
-
-
Method Detail
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
-
dispose
private void dispose()
-
buildItem
private javax.swing.JMenuItem buildItem(javax.swing.JMenuItem tempItem, java.lang.Object parentMenu)
-
eventDispatched
public void eventDispatched(java.awt.AWTEvent event)
- Specified by:
eventDispatched
in interfacejava.awt.event.AWTEventListener
-
-