|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qoppa.pdfViewer.contextmenus.TextSelectionContextMenu
com.qoppa.pdfNotes.contextmenus.TextSelectionContextMenuNotes
public class TextSelectionContextMenuNotes
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);
| 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 |
|---|
public TextSelectionContextMenuNotes()
| Method Detail |
|---|
public JPopupMenu getPopupMenu()
getPopupMenu in class TextSelectionContextMenupublic JMenuItem getHighlightMenuItem()
public JMenuItem getUnderlineMenuItem()
public JMenuItem getCrossoutMenuItem()
public JMenuItem getSquigglyMenuItem()
public JMenuItem getReplaceTextMenuItem()
public JMenuItem getInsertMenuItem()
public JMenuItem getLinkMenuItem()
public JMenuItem getStickyNoteMenuItem()
public JMenuItem getPencilMenuItem()
public JSeparator getPencilSeparator()
public JMenuItem getPasteMenuItem()
public JSeparator getPasteSeparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||