|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.MouseAdapter oracle.ide.controls.TextMenuPopupHandler
TextMenuPopupHandler creates popup (context) menus for text components. Each popup menu contains CUT, COPY, PASTE, and SELECT ALL commands. Selecting the command from the menu invokes the given command on the JTextComponent being managed by the TextPopupHandler instance.
Constructor Summary | |
TextMenuPopupHandler(javax.swing.text.JTextComponent comp)
Constructs a new TextPopupHandler instance. |
Method Summary | |
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. |
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 |
Constructor Detail |
public TextMenuPopupHandler(javax.swing.text.JTextComponent comp)
comp
- The JTextComponent for whom this TextPopupHandler should create
a context menu.Method Detail |
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
protected void maybeShowPopup(java.awt.event.MouseEvent e)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.