public class SignatureContextMenu extends Object
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);
Constructor and Description |
---|
SignatureContextMenu(PDFViewerBean bean) |
Modifier and Type | Method and Description |
---|---|
JMenuItem |
getDetailsMenuItem()
The Details menu item.
|
JPopupMenu |
getPopupMenu()
Returns the actual JPopupMenu.
|
public SignatureContextMenu(PDFViewerBean bean)
public JPopupMenu getPopupMenu()
public JMenuItem getDetailsMenuItem()