|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.MouseAdapter org.greenstone.gs3client.Displays.PopupListener
static class Displays.PopupListener
Handles rightclicks on a treeview of documentNodeData objects by showing the popupMenu with associated files that, when selected, can be displayed in the htmlPane. Listens to rightclick events, but also handles clicks on popup menu items.
Nested Class Summary | |
---|---|
(package private) class |
Displays.PopupListener.AssocFilePopupItem
Package access inner class. |
Field Summary | |
---|---|
(package private) GS3JavaClient |
client
Handle to the running GS3JavaClient object to have access to its methods |
(package private) javax.swing.JEditorPane |
htmlArea
The htmlPane wherein associated files are to be displayed |
(package private) javax.swing.JPopupMenu |
popupMenu
A popup component |
(package private) javax.swing.JTree |
tree
The treeView component on which the rightclicks occurred |
Constructor Summary | |
---|---|
Displays.PopupListener(javax.swing.JPopupMenu popupMenu,
javax.swing.JTree tree,
GS3JavaClient client,
javax.swing.JEditorPane htmlArea)
Constructor for the PopupListener. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Called when one of the popup's menuItems was clicked. |
protected void |
maybeShowPopup(java.awt.event.MouseEvent e)
If the mouseEvent was a trigger (rightclick), displays the popup context menu. |
void |
mousePressed(java.awt.event.MouseEvent e)
Possibly a popupEvent |
void |
mouseReleased(java.awt.event.MouseEvent e)
Possibly a popupEvent |
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseClicked, mouseEntered, mouseExited |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final GS3JavaClient client
final javax.swing.JPopupMenu popupMenu
final javax.swing.JTree tree
final javax.swing.JEditorPane htmlArea
Constructor Detail |
---|
public Displays.PopupListener(javax.swing.JPopupMenu popupMenu, javax.swing.JTree tree, GS3JavaClient client, javax.swing.JEditorPane htmlArea)
popupMenu
- - the JPopupMenu object this PopupListener
will handle mouseEvents fortree
- - the JTree object whose documentNodeData was clickedclient
- - handle to the running GS3JavaClient instancehtmlArea
- - the html editor pane in which to display the
associated file chosen from the popupMenu.Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class java.awt.event.MouseAdapter
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class java.awt.event.MouseAdapter
protected void maybeShowPopup(java.awt.event.MouseEvent e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |