public class GridCopyKeyListener extends Object implements org.eclipse.swt.events.KeyListener
KeyListener
for the copy action on a Grid
control.Constructor and Description |
---|
GridCopyKeyListener(org.eclipse.swt.widgets.Display display)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getSelectionAsText(org.eclipse.nebula.widgets.grid.Grid grid)
Returns the table selection of the
Grid as a formatted string. |
void |
keyPressed(org.eclipse.swt.events.KeyEvent e) |
void |
keyReleased(org.eclipse.swt.events.KeyEvent e) |
public GridCopyKeyListener(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 String getSelectionAsText(org.eclipse.nebula.widgets.grid.Grid grid)
Grid
as a formatted string.grid
- the Grid
controlCopyright © 2016. All rights reserved.