Class CopyPasteHandlerImpl
- java.lang.Object
-
- com.vaadin.addon.spreadsheet.client.CopyPasteHandlerImpl
-
- All Implemented Interfaces:
CopyPasteTextBox.CopyPasteHandler
public class CopyPasteHandlerImpl extends Object implements CopyPasteTextBox.CopyPasteHandler
The class that binds theCopyPasteTextBoxandSpreadsheetWidgettogether; copy operations are put into this class, because we have the necessary info available. paste is delegated to server-side.- Author:
- Thomas Mattsson / Vaadin Ltd.
-
-
Constructor Summary
Constructors Constructor Description CopyPasteHandlerImpl(SheetWidget sheetWidget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClipboardText()voidonCopy()Called when user has performed a copy operation.voidonCut()Called when user has performed a copy operation.voidonPaste(String text)Called when the user has performed a paste operation.
-
-
-
Constructor Detail
-
CopyPasteHandlerImpl
public CopyPasteHandlerImpl(SheetWidget sheetWidget)
-
-
Method Detail
-
onPaste
public void onPaste(String text)
Description copied from interface:CopyPasteTextBox.CopyPasteHandlerCalled when the user has performed a paste operation.- Specified by:
onPastein interfaceCopyPasteTextBox.CopyPasteHandler- Parameters:
text- the pasted text
-
onCut
public void onCut()
Description copied from interface:CopyPasteTextBox.CopyPasteHandlerCalled when user has performed a copy operation.- Specified by:
onCutin interfaceCopyPasteTextBox.CopyPasteHandler
-
onCopy
public void onCopy()
Description copied from interface:CopyPasteTextBox.CopyPasteHandlerCalled when user has performed a copy operation.- Specified by:
onCopyin interfaceCopyPasteTextBox.CopyPasteHandler
-
getClipboardText
public String getClipboardText()
- Specified by:
getClipboardTextin interfaceCopyPasteTextBox.CopyPasteHandler- Returns:
- Textual representation to be put on the systems text clipboard.
-
-