Class PopupTriggerAdapter

java.lang.Object
   |
   +----java.awt.event.MouseAdapter
           |
           +----PopupTriggerAdapter

public abstract class PopupTriggerAdapter
extends MouseAdapter
implements PopupTriggerListener
An adapter which receives PopupMenu trigger events. This is modeled after the AWT adapter classes. Because it is not in the AWT, this class provides nonempty methods that are an example implementation of the OnBase.PopupTriggerListener interface. An extension of MouseAdapter, this class implements the necessary methods of that class to detect a popup menu trigger. Only one method requires overriding, popupMenuTriggered. Java 1.1 Implementation

See Also:
PopupTriggerListener, MouseAdapter

Constructor Index

 o PopupTriggerAdapter()

Method Index

 o mouseClicked(MouseEvent)
One of three mouse events that can be a popup menu trigger.
 o mousePressed(MouseEvent)
One of three mouse events that can be a popup menu trigger.
 o mouseReleased(MouseEvent)
One of three mouse events that can be a popup menu trigger.
 o popupMenuTriggered(MouseEvent)
An example implementation which performs the natural operation of showing the popup menu at the mouse coordinates where the popup was triggered.

Constructors

 o PopupTriggerAdapter
 public PopupTriggerAdapter()

Methods

 o mouseClicked
 public void mouseClicked(MouseEvent e)
One of three mouse events that can be a popup menu trigger.

Overrides:
mouseClicked in class MouseAdapter
 o mousePressed
 public void mousePressed(MouseEvent e)
One of three mouse events that can be a popup menu trigger.

Overrides:
mousePressed in class MouseAdapter
 o mouseReleased
 public void mouseReleased(MouseEvent e)
One of three mouse events that can be a popup menu trigger.

Overrides:
mouseReleased in class MouseAdapter
 o popupMenuTriggered
 public abstract void popupMenuTriggered(MouseEvent e)
An example implementation which performs the natural operation of showing the popup menu at the mouse coordinates where the popup was triggered. public void popupMenuTriggered( MouseEvent e ) { somePopupMenu.show( someComponent, e.getX(), e.getY() ) ; }