public class CopyPasteHandlerImpl extends Object implements CopyPasteTextBox.CopyPasteHandler
CopyPasteTextBox and
SpreadsheetWidget together; copy operations are put into this class,
because we have the necessary info available. paste is delegated to
server-side.| Constructor and Description |
|---|
CopyPasteHandlerImpl(SheetWidget sheetWidget) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClipboardText() |
void |
onCopy()
Called when user has performed a copy operation.
|
void |
onCut()
Called when user has performed a copy operation.
|
void |
onPaste(String text)
Called when the user has performed a paste operation.
|
public CopyPasteHandlerImpl(SheetWidget sheetWidget)
public void onPaste(String text)
CopyPasteTextBox.CopyPasteHandleronPaste in interface CopyPasteTextBox.CopyPasteHandlertext - the pasted textpublic void onCut()
CopyPasteTextBox.CopyPasteHandleronCut in interface CopyPasteTextBox.CopyPasteHandlerpublic void onCopy()
CopyPasteTextBox.CopyPasteHandleronCopy in interface CopyPasteTextBox.CopyPasteHandlerpublic String getClipboardText()
getClipboardText in interface CopyPasteTextBox.CopyPasteHandlerCopyright © 2013–2026 Vaadin Ltd. All rights reserved.