|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qoppa.pdfNotes.contextmenus.ThumbnailContextMenu
public class ThumbnailContextMenu
The ThumbnailContextMenu represents the context menu displayed
when a user right-clicks on page thumbnail in ThumbnailPanelNotes.
There is one instance of this class per PDFNotesBean, it can be retrieved with
PDFNotesBean.getThumbnialPanelNotes().getThumbnailContextMenu().
The contents of the
ThumbnailContextMenu 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();
ThumbnailContextMenu contextMenu = notesBean.getThumbnailPanelNotes().getThumbnailContextMenu();
JMenuItem menuItem = new JMenuItem("My Menu Item");
contextMenu.getPopupMenu().add(menuItem);
The visibility and enabled state of the preset menu items is adjusted each
time the JPopupMenu is displayed. The behavior of these
adjustments is documented on each individual getter method. If a developer
desires a different behavior for a particular item, they may remove the item
and add their own. Or, they can add a PopupMenuListener to the
JPopupMenu. Their Listener will be notified after
any adjustments have been completed, and they can make adjustments as they
wish.
| Constructor Summary | |
|---|---|
ThumbnailContextMenu(PDFViewerBean bean)
|
|
| Method Summary | |
|---|---|
JMenuItem |
getCopyPageMenuItem()
The CopyPageMenuItem. |
JMenuItem |
getCutPageMenuItem()
The CutPageMenuItem. |
JMenuItem |
getDeleteCommentsMenuItem()
The DeleteCommentsMenuItem. |
JMenuItem |
getDeletePageMenuItem()
The DeletePageMenuItem. |
JMenuItem |
getFlattenCommentsMenuItem()
The FlattenCommentsMenuItem. |
JSeparator |
getFlattenSeparator()
The FlattenSeparator. |
JMenuItem |
getInsertPageMenuItem()
The InsertPageMenuItem. |
JMenuItem |
getPastePageMenuItem()
The PastePageMenuItem. |
JPopupMenu |
getPopupMenu()
Returns the actual JPopupMenu. |
JMenuItem |
getRotate180MenuItem()
The Rotate180MenuItem. |
JMenuItem |
getRotateCcw90MenuItem()
The Rotate90CcwMenuItem. |
JMenuItem |
getRotateCw90MenuItem()
The RotateCw90MenuItem. |
JMenu |
getRotatePageMenu()
The RotatePageMenu. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThumbnailContextMenu(PDFViewerBean bean)
| Method Detail |
|---|
public JPopupMenu getPopupMenu()
public JMenuItem getInsertPageMenuItem()
public JMenuItem getDeletePageMenuItem()
public JMenuItem getCutPageMenuItem()
public JMenuItem getCopyPageMenuItem()
public JMenuItem getPastePageMenuItem()
public JMenu getRotatePageMenu()
public JMenuItem getRotateCw90MenuItem()
public JMenuItem getRotate180MenuItem()
public JMenuItem getRotateCcw90MenuItem()
public JMenuItem getFlattenCommentsMenuItem()
AnnotationTools.isFlatteningEnabled() evaluates to false
public JMenuItem getDeleteCommentsMenuItem()
AnnotationTools.isDeleteEnabled() is false
public JSeparator getFlattenSeparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||