Interface CopyPasteTextBox.CopyPasteHandler
-
- All Known Implementing Classes:
CopyPasteHandlerImpl
- Enclosing class:
- CopyPasteTextBox
public static interface CopyPasteTextBox.CopyPasteHandlerHandler interface for dealing with the data that is transferred in copy, cut and paste operations.- Author:
- Thomas Mattsson / Vaadin Ltd.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
onCut
void onCut()
Called when user has performed a copy operation.
-
onCopy
void onCopy()
Called when user has performed a copy operation.
-
onPaste
void onPaste(String text)
Called when the user has performed a paste operation.- Parameters:
text- the pasted text
-
getClipboardText
String getClipboardText()
- Returns:
- Textual representation to be put on the systems text clipboard.
-
-