Interface ClipboardActions<PS,​SEG,​S>

    • Method Detail

      • getStyleCodecs

        Optional<Tuple2<Codec<PS>,​Codec<StyledSegment<SEG,​S>>>> getStyleCodecs()
        Gets codecs to encode/decode style information to/from binary format. Providing codecs enables clipboard actions to retain the style information.
      • cut

        default void cut()
        Transfers the currently selected text to the clipboard, removing the current selection.
      • copy

        default void copy()
        Transfers the currently selected text to the clipboard, leaving the current selection.
      • paste

        default void paste()
        Inserts the content from the clipboard into this text-editing area, replacing the current selection. If there is no selection, the content from the clipboard is inserted at the current caret position.