com.qoppa.pdfViewer.contextmenus
Class SignatureContextMenu
java.lang.Object
com.qoppa.pdfViewer.contextmenus.SignatureContextMenu
- Direct Known Subclasses:
- SignatureContextMenuNotes
public class SignatureContextMenu
- extends Object
The SignatureContextMenu represents the popup menu that is
displayed when the user right clicks on a signature node. A reference
to the SignatureContextMenu of the PDFViewerBean can
be obtained with
PDFViewerBean.getSignaturePanel().getSignatureContextMenu().
By default, this menu contains a DetailsMenuItem. The contents of the
SignatureContextMenu may be accessed and modified with the
getPopupMenu() method. For example, to add a new menu item to
the popup menu:
PDFViewerBean viewerBean = new PDFViewerBean();
SignatureContextMenu contextMenu = viewerBean.getSignaturePanel().getSignatureContextMenu();
JMenuItem menuItem = new JMenuItem("My Menu Item");
contextMenu.getPopupMenu().add(menuItem);
- Author:
- Qoppa Software
SignatureContextMenu
public SignatureContextMenu(PDFViewerBean bean)
getPopupMenu
public JPopupMenu getPopupMenu()
- Returns the actual JPopupMenu. The list of components for this menu is constructed when
JPopupMenu is instantiated, and is not modified afterwards. Therefore, any modifications that
developers make to this list, will be persistent.
- Returns:
- the PopupMenu
getDetailsMenuItem
public JMenuItem getDetailsMenuItem()
- The Details menu item. When pressed, the details dialog for the clicked signature will be displayed.
- Returns:
- the FlattenMenuItem