eTextReader
Class OpenExternalPopupWindowHandler

java.lang.Object
  extended by eTextReader.NotationEventAdapter
      extended by eTextReader.PopupWindowNotationHandler
          extended by eTextReader.OpenExternalPopupWindowHandler
All Implemented Interfaces:
NotationEventListener, java.util.EventListener
Direct Known Subclasses:
DiscussionWindow.DiscussionNotationEventHandler

public class OpenExternalPopupWindowHandler
extends PopupWindowNotationHandler

This class extends the PopupWindowHandler to handle notation selected events. It handles these by either popping up a discussion window or an AnnotationViewer window.

Author:
mcfall

Field Summary
 
Fields inherited from class eTextReader.PopupWindowNotationHandler
enabledTypes, popup, scrollingContentPane
 
Constructor Summary
OpenExternalPopupWindowHandler(javax.swing.JFrame frame, ScrollingContentPane scrollingContentPane)
          Constructs an ExternalPopupWindowHandler associated with the given frame and scrolling content pane
 
Method Summary
protected  void handleNotationSelected(NotationEvent ne)
          Performs the same action is exiting the notation by calling PopupWindowNotationHandler.handleNotationExited(NotationEvent)
 
Methods inherited from class eTextReader.PopupWindowNotationHandler
disableTypes, enableTypes, handleNotationEntered, handleNotationExited, isTypeEnabled, notationEventOccurred, pageChanged
 
Methods inherited from class eTextReader.NotationEventAdapter
errorOccurred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenExternalPopupWindowHandler

public OpenExternalPopupWindowHandler(javax.swing.JFrame frame,
                                      ScrollingContentPane scrollingContentPane)
Constructs an ExternalPopupWindowHandler associated with the given frame and scrolling content pane

Parameters:
frame -
scrollingContentPane -
Method Detail

handleNotationSelected

protected void handleNotationSelected(NotationEvent ne)
Description copied from class: PopupWindowNotationHandler
Performs the same action is exiting the notation by calling PopupWindowNotationHandler.handleNotationExited(NotationEvent)

Overrides:
handleNotationSelected in class PopupWindowNotationHandler
Parameters:
ne - the notation event that triggered this action