public class SignatureContextMenuNotes extends SignatureContextMenu
SignatureContextMenuNotes
represents the popup menu that is
displayed when the user right clicks on a signature widget. A reference to
the SignatureContextMenuNotes
of the PDFNotesBean
can be
obtained with
PDFNotesBean.getSignaturePanelNotes().getSignatureContextMenuNotes()
. By default, this menu is composed of: ClearSignatureMenuItem,
ApplySignatureMenuItem, a JMenu divider, EditMenuItem, DeleteMenuItem, a
JMenu divider, and DetailsMenuItem. The contents of the
SignatureContextMenuNotes
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(); SignatureContextMenuNotes contextMenu = notesBean.getSignaturePanelNotes().getSignatureContextMenuNotes(); JMenuItem menuItem = new JMenuItem("My Menu Item"); contextMenu.getPopupMenu().add(menuItem);
Constructor and Description |
---|
SignatureContextMenuNotes(PDFViewerBean bean) |
Modifier and Type | Method and Description |
---|---|
JSeparator |
getDeleteDivider()
The JSeparator that follows the DeleteMenuItem
|
JMenuItem |
getDeleteMenuItem()
The Delete menu item.
|
JPopupMenu |
getPopupMenu()
Returns the actual JPopupMenu.
|
JMenuItem |
getSigFieldApplyCertifyingSignatureMenuItem()
Returns the JMenuItem object to apply certifying signatures to the document.
|
JMenuItem |
getSigFieldApplySignatureMenuItem()
The Apply signature menu item.
|
JMenuItem |
getSigFieldClearSignatureMenuItem()
The Clear signature menu item.
|
JMenuItem |
getSigFieldEdit()
The Edit menu item.
|
JSeparator |
getTrustedCertSeparator()
The JSeparator that follows the AddTrustedCertificate.
|
getDetailsMenuItem, isActive, setActive
public SignatureContextMenuNotes(PDFViewerBean bean)
public JPopupMenu getPopupMenu()
getPopupMenu
in class SignatureContextMenu
public JMenuItem getSigFieldApplySignatureMenuItem()
WidgetSignature
. public JMenuItem getSigFieldApplyCertifyingSignatureMenuItem()
public JMenuItem getSigFieldClearSignatureMenuItem()
WidgetSignature
. public JMenuItem getSigFieldEdit()
WidgetSignature
or the LinkComponent
, which allows
field to be resized and moved. public JSeparator getTrustedCertSeparator()
public JSeparator getDeleteDivider()
public JMenuItem getDeleteMenuItem()
AnnotationTools#isDeleteEnabled()
is false.