public class GridPasteKeyListener extends Object implements org.eclipse.swt.events.KeyListener
KeyListener
for the paste action on a Grid
control.Constructor and Description |
---|
GridPasteKeyListener(org.eclipse.swt.widgets.Display display)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(org.eclipse.swt.events.KeyEvent e) |
void |
keyReleased(org.eclipse.swt.events.KeyEvent e) |
void |
pasteSelection(org.eclipse.nebula.widgets.grid.Grid grid,
String contents)
Pastes the given contents in the grid.
|
public GridPasteKeyListener(org.eclipse.swt.widgets.Display display)
display
- the Display
on which to allocate this command's Clipboard
.public void keyPressed(org.eclipse.swt.events.KeyEvent e)
keyPressed
in interface org.eclipse.swt.events.KeyListener
public void keyReleased(org.eclipse.swt.events.KeyEvent e)
keyReleased
in interface org.eclipse.swt.events.KeyListener
public void pasteSelection(org.eclipse.nebula.widgets.grid.Grid grid, String contents)
grid
- the target Grid
contents
- the contents to pasteCopyright © 2016. All rights reserved.