com.qoppa.pdfViewer.contextmenus
Class SignatureContextMenu

java.lang.Object
  extended by 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

Constructor Summary
SignatureContextMenu(PDFViewerBean bean)
           
 
Method Summary
 JMenuItem getDetailsMenuItem()
          The Details menu item.
 JPopupMenu getPopupMenu()
          Returns the actual JPopupMenu.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureContextMenu

public SignatureContextMenu(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.

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