com.qoppa.pdfNotes.contextmenus
Class TextSelectionContextMenuNotes

java.lang.Object
  extended by com.qoppa.pdfViewer.contextmenus.TextSelectionContextMenu
      extended by com.qoppa.pdfNotes.contextmenus.TextSelectionContextMenuNotes

public class TextSelectionContextMenuNotes
extends TextSelectionContextMenu

The TextSelectionContextMenuNotes represents the popup menu that is displayed when the user right clicks on the PageViewPanelNotes and the Text Selection Tool is active. A reference to the TextSelectionContextMenuNotes of the PDFNotesBean can be obtained with PDFNotesBean.getPageViewPanelNotes().getTextSelectionContextMenuNotes() . By default, this menu is composed of: CopyMenuItem, a JMenu divider, HighlightMenuItem, UnderLineMenuItem, CrossoutMenuItem, SquigglyMenuItem, ReplacementMenuItem, InsertMenuItem, a JMenu Divider, LinkMenuItem, OpenLinkMenuItem, a JMenu divider, StickyNoteMenuItem, PencilMenuItem, a JMenu divider, HandToolMenuItem, TextSelectionMenuItem, and ZoomToolMenuItem. These items may be modified by retrieving them with their individual getter methods. The contents of the TextSelectionContextMenuNotes may be accessed and modified with the getPopupMenu() method. For example, to add a new menu item to the popup menu:

 PDFNotesBean notesBean = new PDFNotesBean();
 TextSelectionContextMenuNotes contextMenu = notesBean.getPageViewPanelNotes().getTextSelectionContextMenuNotes();
 JMenuItem menuItem = new JMenuItem("My Menu Item");
 contextMenu.getPopupMenu().add(menuItem);
 

Author:
Qoppa Software

Constructor Summary
TextSelectionContextMenuNotes()
           
 
Method Summary
 JMenuItem getCrossoutMenuItem()
           
 JMenuItem getHighlightMenuItem()
           
 JMenuItem getInsertMenuItem()
           
 JMenuItem getLinkMenuItem()
           
 JMenuItem getPasteMenuItem()
          The Paste menu item.
 JSeparator getPasteSeparator()
          Returns the separator that is used after the Pencil tool.
 JMenuItem getPencilMenuItem()
          The Add Pencil menu item for the page view context menu.
 JSeparator getPencilSeparator()
           
 JPopupMenu getPopupMenu()
           
 JMenuItem getReplaceTextMenuItem()
           
 JMenuItem getSquigglyMenuItem()
           
 JMenuItem getStickyNoteMenuItem()
          The Add Sticky Note menu item for the page view context menu.
 JMenuItem getUnderlineMenuItem()
           
 
Methods inherited from class com.qoppa.pdfViewer.contextmenus.TextSelectionContextMenu
getCopyMenuItem, getCopySeparator, getHandToolMenuItem, getLinkSeparator, getOpenLinkMenuItem, getTextSelMenuItem, getZoomToolMenuItem
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextSelectionContextMenuNotes

public TextSelectionContextMenuNotes()
Method Detail

getPopupMenu

public JPopupMenu getPopupMenu()
Overrides:
getPopupMenu in class TextSelectionContextMenu

getHighlightMenuItem

public JMenuItem getHighlightMenuItem()

getUnderlineMenuItem

public JMenuItem getUnderlineMenuItem()

getCrossoutMenuItem

public JMenuItem getCrossoutMenuItem()

getSquigglyMenuItem

public JMenuItem getSquigglyMenuItem()

getReplaceTextMenuItem

public JMenuItem getReplaceTextMenuItem()

getInsertMenuItem

public JMenuItem getInsertMenuItem()

getLinkMenuItem

public JMenuItem getLinkMenuItem()

getStickyNoteMenuItem

public JMenuItem getStickyNoteMenuItem()
The Add Sticky Note menu item for the page view context menu.

Returns:
Add Sticky Note menu item

getPencilMenuItem

public JMenuItem getPencilMenuItem()
The Add Pencil menu item for the page view context menu.

Returns:
Add Pencil menu item

getPencilSeparator

public JSeparator getPencilSeparator()

getPasteMenuItem

public JMenuItem getPasteMenuItem()
The Paste menu item. This menu item is enabled only if a the system clipboard contains paste-able content

Returns:
Paste menu item

getPasteSeparator

public JSeparator getPasteSeparator()
Returns the separator that is used after the Pencil tool.

Returns:
The JSeparator object that is added after the pencil tool