|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPopupMenu
com.qoppa.pdfViewer.ViewerContextMenu
This is the popup menu that is shown when a user right-clicks on the content pane of the viewer. This class allows the host application to manage the menu by removing any of the entries, or adding their own entries. Some of the tools in jPDFViewer, such as the text selection tool, use this object to add their own entries during the time that the tool is active.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPopupMenu |
JPopupMenu.Separator |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
void |
actionPerformed(ActionEvent ae)
Handle the actions of the default menu items. |
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. |
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. |
boolean |
isActive()
Returns the Active flag. |
void |
setActive(boolean active)
Sets the value of the Active flag. |
void |
show(Component invoker,
int x,
int y)
This method is overridden so that if no components are visible, the popup menu will not be shown. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.qoppa.pdfViewer.IContextMenu |
add, addPopupMenuListener, addSeparator, getComponent, getComponentCount, getComponentIndex, insert, remove, removePopupMenuListener |
| Method Detail |
public void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListenerae - The action event.public JCheckBoxMenuItem getHandToolMenuItem()
public JCheckBoxMenuItem getTextSelMenuItem()
public JCheckBoxMenuItem getZoomToolMenuItem()
public void show(Component invoker,
int x,
int y)
public void clearSelection()
public boolean isActive()
public void setActive(boolean active)
active - The new value of the Active flag.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||