com.qoppa.pdfNotes.contextmenus
Class SignatureContextMenuNotes

java.lang.Object
  extended by com.qoppa.pdfViewer.contextmenus.SignatureContextMenu
      extended by com.qoppa.pdfNotes.contextmenus.SignatureContextMenuNotes

public class SignatureContextMenuNotes
extends SignatureContextMenu

The 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);
 

Author:
Qoppa Software

Constructor Summary
SignatureContextMenuNotes(PDFViewerBean bean)
           
 
Method Summary
 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.
 
Methods inherited from class com.qoppa.pdfViewer.contextmenus.SignatureContextMenu
getDetailsMenuItem
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureContextMenuNotes

public SignatureContextMenuNotes(PDFViewerBean bean)
Method Detail

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.

Overrides:
getPopupMenu in class SignatureContextMenu
Returns:
the PopupMenu

getSigFieldApplySignatureMenuItem

public JMenuItem getSigFieldApplySignatureMenuItem()
The Apply signature menu item. When pressed, applies a signature to the selected WidgetSignature.

Returns:
the ApplySignatureMenuItem

getSigFieldApplyCertifyingSignatureMenuItem

public JMenuItem getSigFieldApplyCertifyingSignatureMenuItem()
Returns the JMenuItem object to apply certifying signatures to the document.

Returns:
The ApplyCertifyingSignature menu item.

getSigFieldClearSignatureMenuItem

public JMenuItem getSigFieldClearSignatureMenuItem()
The Clear signature menu item. When pressed, clears the signature of the selected WidgetSignature.

Returns:
the ApplySignatureMenuItem

getSigFieldEdit

public JMenuItem getSigFieldEdit()
The Edit menu item. When pressed, activates edit mode on the WidgetSignature or the LinkComponent, which allows field to be resized and moved.

Returns:
the ApplySignatureMenuItem

getTrustedCertSeparator

public JSeparator getTrustedCertSeparator()
The JSeparator that follows the AddTrustedCertificate. This Separator is only visible if the ApplySignatureMenuItem or the ClearSignatureMenuItem are visible.

Returns:
the JSeparator

getDeleteDivider

public JSeparator getDeleteDivider()
The JSeparator that follows the DeleteMenuItem

Returns:
the JSeparator

getDeleteMenuItem

public JMenuItem getDeleteMenuItem()
The Delete menu item. When pressed, the currently clicked signature field is deleted.

This MenuItem is invisible if AnnotationTools.isDeleteEnabled() is false.
It is disabled if any selected annotations are unable to be modified.

Returns:
the DeleteMenuItem