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
-
PopupTriggerAdapter()
-
-
mouseClicked(MouseEvent)
- One of three mouse events that can be a popup menu trigger.
-
mousePressed(MouseEvent)
- One of three mouse events that can be a popup menu trigger.
-
mouseReleased(MouseEvent)
- One of three mouse events that can be a popup menu trigger.
-
popupMenuTriggered(MouseEvent)
- An example implementation which performs the natural operation
of showing the popup menu at the mouse coordinates where the
popup was triggered.
PopupTriggerAdapter
public PopupTriggerAdapter()
mouseClicked
public void mouseClicked(MouseEvent e)
- One of three mouse events that can be a popup menu trigger.
- Overrides:
- mouseClicked in class MouseAdapter
mousePressed
public void mousePressed(MouseEvent e)
- One of three mouse events that can be a popup menu trigger.
- Overrides:
- mousePressed in class MouseAdapter
mouseReleased
public void mouseReleased(MouseEvent e)
- One of three mouse events that can be a popup menu trigger.
- Overrides:
- mouseReleased in class MouseAdapter
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() ) ;
}