projectviewer.vpt
Class VPTContextMenu

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by projectviewer.vpt.VPTContextMenu
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, ExtensionManager.ManagedService

public class VPTContextMenu
extends java.awt.event.MouseAdapter
implements ExtensionManager.ManagedService

A handler for context menu requests on the tree, providing node-sensitive functionality.

Author:
Marcelo Vanzin

Constructor Summary
VPTContextMenu(ProjectViewer viewer)
          Constructs a listener that will ask the provided viewer instance for information about the nodes clicked.
 
Method Summary
 java.lang.Class getServiceClass()
          ManagedService implementation.
 java.lang.String getServiceName()
          ManagedService implementation.
 void mousePressed(java.awt.event.MouseEvent me)
          Context-menus are shown on the "pressed" event.
 void mouseReleased(java.awt.event.MouseEvent me)
          Context-menus are shown on the "pressed" event.
 void updateExtensions(java.util.List<java.lang.Object> l)
          ManagedService implementation.
 void userMenuChanged()
          Called when the user context menu (or a config option related to that menu) has changed.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VPTContextMenu

public VPTContextMenu(ProjectViewer viewer)
Constructs a listener that will ask the provided viewer instance for information about the nodes clicked.

Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent me)
Context-menus are shown on the "pressed" event.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class java.awt.event.MouseAdapter

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent me)
Context-menus are shown on the "pressed" event.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class java.awt.event.MouseAdapter

userMenuChanged

public void userMenuChanged()
Called when the user context menu (or a config option related to that menu) has changed.


getServiceClass

public java.lang.Class getServiceClass()
ManagedService implementation.

Specified by:
getServiceClass in interface ExtensionManager.ManagedService
Since:
PV 3.0.0

getServiceName

public java.lang.String getServiceName()
ManagedService implementation.

Specified by:
getServiceName in interface ExtensionManager.ManagedService
Since:
PV 3.0.0

updateExtensions

public void updateExtensions(java.util.List<java.lang.Object> l)
ManagedService implementation.

Specified by:
updateExtensions in interface ExtensionManager.ManagedService
Since:
PV 3.0.0