|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qoppa.pdfViewer.contextmenus.PageViewContextMenu
public class PageViewContextMenu
The PageViewContextMenu represents the popup menu that is
displayed when the user right clicks on the PageViewPanel and the
Text Selection Tool is not active. A reference to the
PageViewContextMenu of the PDFViewerBean can be obtained
with PDFViewerBean.getPageViewPanel().getPageContextMenu(). By
default, this menu is composed of: HandToolMenuItem, TextSelectionMenuItem,
and ZoomToolMenuItem. These items may be modified by retrieving them with
their individual getter methods. The contents of the
PageViewContextMenu 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();
PageViewContextMenu contextMenu = viewerBean.getPageViewPanel().getPageContextMenu();
JMenuItem menuItem = new JMenuItem("My Menu Item");
contextMenu.getPopupMenu().add(menuItem);
| Constructor Summary | |
|---|---|
PageViewContextMenu()
Constructs a new ViewerContextMenu |
|
| Method Summary | |
|---|---|
void |
clearSelection()
This method clears the Hand Tool, Text Select, and Zoom Tool menu item check boxes. |
JCheckBoxMenuItem |
getHandToolMenuItem()
The Hand Tool menu item for the page view context menu. |
JPopupMenu |
getPopupMenu()
Retrieves the actual JPopupMenu with the copyMenuItem either visible or not |
JCheckBoxMenuItem |
getTextSelMenuItem()
The Text Select menu item for the page view context menu. |
JCheckBoxMenuItem |
getZoomToolMenuItem()
The Zoom Tool menu item for the page view context menu. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageViewContextMenu()
ViewerContextMenu
| Method Detail |
|---|
public JPopupMenu getPopupMenu()
public JCheckBoxMenuItem getHandToolMenuItem()
public JCheckBoxMenuItem getTextSelMenuItem()
public JCheckBoxMenuItem getZoomToolMenuItem()
public void clearSelection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||