|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.event.MouseAdapter
|
+--org.PingOO.DLAI.lib.PWidget.EditPopupMouseListener
Common mouse listener for copy/paste/cut on PTextFields, PTextArea, PPasswordField.
JTextField,
MouseListener| Inner Class Summary | |
protected class |
EditPopupMouseListener.CopyAction
Copy the content of the current selection to clipboard. |
protected class |
EditPopupMouseListener.CutAction
Cut the content of current selection to clipboard. |
protected class |
EditPopupMouseListener.PasteAction
Paste the content of clipboard over the current selection. |
| Field Summary | |
private PAction |
copyAction
Action : copy selected text. |
private PAction |
cutAction
Action : cut selected text. |
private PAction |
pasteAction
Action : paste text on selection. |
(package private) javax.swing.text.JTextComponent |
target
The target of this listener. |
| Constructor Summary | |
private |
EditPopupMouseListener()
Hides this constructor. |
|
EditPopupMouseListener(javax.swing.text.JTextComponent target)
Creates a new constructor. |
| Method Summary | |
private void |
createActions()
Creates the editing actions. |
private void |
createPopUp(int x,
int y)
Displays a popup menu with the standard copy, cut and paste buttons. |
private void |
enableActions(boolean value)
Enables the editing actions. |
void |
mouseClicked(java.awt.event.MouseEvent event)
Action to execute when there is a right click on this field. |
| Methods inherited from class java.awt.event.MouseAdapter |
mouseEntered,
mouseExited,
mousePressed,
mouseReleased |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
javax.swing.text.JTextComponent target
private PAction copyAction
private PAction cutAction
private PAction pasteAction
| Constructor Detail |
private EditPopupMouseListener()
public EditPopupMouseListener(javax.swing.text.JTextComponent target)
target - | Method Detail |
public void mouseClicked(java.awt.event.MouseEvent event)
event - The mouse event.private final void createActions()
private final void enableActions(boolean value)
private final void createPopUp(int x,
int y)
x - The x position where this popup sould be displayed.y - The y position where this popup sould be displayed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||