Interface CopyPasteTextBox.CopyPasteHandler

  • All Known Implementing Classes:
    CopyPasteHandlerImpl
    Enclosing class:
    CopyPasteTextBox

    public static interface CopyPasteTextBox.CopyPasteHandler
    Handler interface for dealing with the data that is transferred in copy, cut and paste operations.
    Author:
    Thomas Mattsson / Vaadin Ltd.
    • 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.