Interface ITerminalClipboard
- All Superinterfaces:
HasElement,Serializable
- All Known Implementing Classes:
XTerm
Add clipboard support to XTerm. This provides handling of Ctrl-C (copy) and Ctrl-V (paste)
shortcuts, and optional click-to-copy and click-to-paste. The clipboard target is either the
system clipboard or an internal buffer.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturn whether copy and paste actions use the system clipboarddefault booleanReturn whether text is copied to the clipboard when selected.default booleanReturn whether mouse middle click is handled as a paste actiondefault booleanReturn whether mouse right click is handled as a paste actiondefault voidsetCopySelection(boolean value) Automatically copy to the clipboard the select text.default voidsetPasteWithMiddleClick(boolean value) Handle mouse middle click as a paste actiondefault voidsetPasteWithRightClick(boolean value) Handle mouse right click as a paste actiondefault voidConfigure the clipboard to write (and optionally read from) the system clipboardMethods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Method Details
-
setUseSystemClipboard
Configure the clipboard to write (and optionally read from) the system clipboard -
setPasteWithRightClick
default void setPasteWithRightClick(boolean value) Handle mouse right click as a paste action -
setPasteWithMiddleClick
default void setPasteWithMiddleClick(boolean value) Handle mouse middle click as a paste action -
setCopySelection
default void setCopySelection(boolean value) Automatically copy to the clipboard the select text. -
getUseSystemClipboard
Return whether copy and paste actions use the system clipboard -
isPasteWithRightClick
default boolean isPasteWithRightClick()Return whether mouse right click is handled as a paste action -
isPasteWithMiddleClick
default boolean isPasteWithMiddleClick()Return whether mouse middle click is handled as a paste action -
isCopySelection
default boolean isCopySelection()Return whether text is copied to the clipboard when selected.
-