public class TextMenuPopupHandler
extends java.awt.event.MouseAdapter
implements java.awt.event.ActionListener
| Constructor and Description |
|---|
TextMenuPopupHandler(javax.swing.text.JTextComponent comp)
Constructs a new TextPopupHandler instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Perform the action selected by the user.
|
protected void |
maybeShowPopup(java.awt.event.MouseEvent e)
Checks to see if the user requested the popup menu, and displays it if so.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
|
public TextMenuPopupHandler(javax.swing.text.JTextComponent comp)
comp - The JTextComponent for whom this TextPopupHandler should create
a context menu.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class java.awt.event.MouseAdapterpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class java.awt.event.MouseAdapterprotected void maybeShowPopup(java.awt.event.MouseEvent e)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener