|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.awt.event.MouseAdapter
oracle.javatools.controls.TextMenuPopupHandler
public class 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, 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 |
---|
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
mousePressed
in class java.awt.event.MouseAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class java.awt.event.MouseAdapter
protected void maybeShowPopup(java.awt.event.MouseEvent e)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |