eTextReader
Class ContentPane.PopupMouseHandler

java.lang.Object
  extended by javax.swing.event.MouseInputAdapter
      extended by eTextReader.ContentPane.PopupMouseHandler
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.swing.event.MouseInputListener
Enclosing class:
ContentPane

 class ContentPane.PopupMouseHandler
extends javax.swing.event.MouseInputAdapter

Keeps track of the current mouse pointer location.


Field Summary
(package private)  javax.swing.Action currentAuthorListingAction
           
(package private)  javax.swing.Action currentTypeListingAction
           
(package private)  javax.swing.Action deleteAction
           
protected  javax.swing.JPopupMenu jpm
           
protected  javax.swing.JMenu notationListingMenu
           
 
Constructor Summary
ContentPane.PopupMouseHandler()
           
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent me)
           
 void mouseMoved(java.awt.event.MouseEvent me)
           
 void mousePressed(java.awt.event.MouseEvent me)
           
protected  void setupMenuInAnnotation()
          Sets up the popup menu when the mouse is over an annotation
private  void setupNotationListingMenuCommon()
          Configures the Notation listing menu with items that are present regardless of the location of the cursor
 
Methods inherited from class javax.swing.event.MouseInputAdapter
mouseDragged, mouseEntered, mouseExited, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jpm

protected javax.swing.JPopupMenu jpm

notationListingMenu

protected javax.swing.JMenu notationListingMenu

deleteAction

javax.swing.Action deleteAction

currentTypeListingAction

javax.swing.Action currentTypeListingAction

currentAuthorListingAction

javax.swing.Action currentAuthorListingAction
Constructor Detail

ContentPane.PopupMouseHandler

public ContentPane.PopupMouseHandler()
Method Detail

setupMenuInAnnotation

protected void setupMenuInAnnotation()
Sets up the popup menu when the mouse is over an annotation

Parameters:
men -

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent me)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class javax.swing.event.MouseInputAdapter

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent me)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class javax.swing.event.MouseInputAdapter

setupNotationListingMenuCommon

private void setupNotationListingMenuCommon()
Configures the Notation listing menu with items that are present regardless of the location of the cursor


mousePressed

public void mousePressed(java.awt.event.MouseEvent me)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class javax.swing.event.MouseInputAdapter