public class TextSelectionContextMenuNotes extends TextSelectionContextMenu
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);
Constructor and Description |
---|
TextSelectionContextMenuNotes() |
Modifier and Type | Method and Description |
---|---|
JMenuItem |
getCopyTableMenuItem() |
JMenuItem |
getCreateLinkMenuItem() |
JMenuItem |
getCrossoutMenuItem() |
JSeparator |
getCsvSeparator() |
JMenuItem |
getExtractCsvMenuItem() |
JMenuItem |
getHighlightMenuItem() |
JMenuItem |
getInsertMenuItem() |
JSeparator |
getInsertSeparator() |
JMenuItem |
getPasteMenuItem()
The Paste menu item.
|
JSeparator |
getPasteSeparator()
Returns the separator that is used after the paste menu item.
|
JMenuItem |
getPencilMenuItem()
The Add Pencil menu item for the page view context menu.
|
JSeparator |
getPencilSeparator() |
JPopupMenu |
getPopupMenu() |
JMenuItem |
getRedactMenuItem() |
JMenuItem |
getReplaceTextMenuItem() |
JMenuItem |
getSearchGoogleMenuItem() |
JSeparator |
getSearchSeparator() |
JMenuItem |
getSquigglyMenuItem() |
JMenuItem |
getStickyNoteMenuItem()
The Add Sticky Note menu item for the page view context menu.
|
JMenuItem |
getUnderlineMenuItem() |
getCopyMenuItem, getCopySeparator, getHandToolMenuItem, getLinkSeparator, getOpenLinkMenuItem, getTextSelMenuItem, getZoomToolMenuItem, isActive, setActive
public JPopupMenu getPopupMenu()
getPopupMenu
in class TextSelectionContextMenu
public JMenuItem getHighlightMenuItem()
public JMenuItem getUnderlineMenuItem()
public JMenuItem getCrossoutMenuItem()
public JMenuItem getSquigglyMenuItem()
public JMenuItem getReplaceTextMenuItem()
public JMenuItem getInsertMenuItem()
public JMenuItem getRedactMenuItem()
public JMenuItem getCreateLinkMenuItem()
public JMenuItem getExtractCsvMenuItem()
public JMenuItem getCopyTableMenuItem()
public JSeparator getInsertSeparator()
public JSeparator getCsvSeparator()
public JMenuItem getStickyNoteMenuItem()
public JMenuItem getPencilMenuItem()
public JSeparator getPencilSeparator()
public JMenuItem getPasteMenuItem()
public JSeparator getPasteSeparator()
public JMenuItem getSearchGoogleMenuItem()
public JSeparator getSearchSeparator()