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,
VControl vControl,
EMFFormsDatabindingEMF dataBinding,
EStructuralFeatureValueConverterService converterService,
boolean selectPastedCells)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(org.eclipse.swt.events.KeyEvent e) |
void |
keyReleased(org.eclipse.swt.events.KeyEvent e) |
List<org.eclipse.swt.graphics.Point> |
pasteContents(org.eclipse.swt.graphics.Point startItem,
org.eclipse.nebula.widgets.grid.Grid grid,
String contents)
Performs the paste operation.
|
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, VControl vControl, EMFFormsDatabindingEMF dataBinding, EStructuralFeatureValueConverterService converterService, boolean selectPastedCells)
display
- the Display
on which to allocate this command's Clipboard
.vControl
- the VTableControl
.dataBinding
- EMFFormsDatabindingEMF
converterService
- EStructuralFeatureValueConverterService
selectPastedCells
- whether to select the pasted cellspublic 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 pastepublic List<org.eclipse.swt.graphics.Point> pasteContents(org.eclipse.swt.graphics.Point startItem, org.eclipse.nebula.widgets.grid.Grid grid, String contents)
startItem
- the start utengrid
- the gridcontents
- the pasted contentsCopyright © 2016. All rights reserved.