Package org.fxmisc.richtext
Interface ClipboardActions<PS,SEG,S>
-
- All Superinterfaces:
EditActions<PS,SEG,S>,TextEditingArea<PS,SEG,S>
- All Known Implementing Classes:
CodeArea,GenericStyledArea,InlineCssTextArea,InlineCssTextField,StyleClassedTextArea,StyleClassedTextField,StyledTextArea,StyledTextField
public interface ClipboardActions<PS,SEG,S> extends EditActions<PS,SEG,S>
Clipboard actions forTextEditingArea.
-
-
Property Summary
-
Properties inherited from interface org.fxmisc.richtext.TextEditingArea
anchor, beingUpdated, caretBounds, caretColumn, caretPosition, currentParagraph, length, selectedText, selectionBounds, selection, showCaret, text
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcopy()Transfers the currently selected text to the clipboard, leaving the current selection.default voidcut()Transfers the currently selected text to the clipboard, removing the current selection.SegmentOps<SEG,S>getSegOps()Returns the object used for operating oversegmentsand their stylesOptional<Tuple2<Codec<PS>,Codec<StyledSegment<SEG,S>>>>getStyleCodecs()Gets codecs to encode/decode style information to/from binary format.default voidpaste()Inserts the content from the clipboard into this text-editing area, replacing the current selection.voidsetStyleCodecs(Codec<PS> paragraphStyleCodec, Codec<StyledSegment<SEG,S>> textStyleCodec)-
Methods inherited from interface org.fxmisc.richtext.EditActions
append, append, appendText, clear, deleteNextChar, deletePreviousChar, deleteText, deleteText, deleteText, insert, insert, insert, insertText, insertText, moveSelectedText, replace, replaceSelection, replaceSelection, replaceText
-
Methods inherited from interface org.fxmisc.richtext.TextEditingArea
anchorProperty, beingUpdatedProperty, caretBoundsProperty, caretColumnProperty, caretPositionProperty, createMultiChange, createMultiChange, currentParagraphProperty, displaceCaret, dispose, getAbsolutePosition, getAnchor, getCaretBounds, getCaretColumn, getCaretPosition, getCaretSelectionBind, getContent, getCurrentParagraph, getDocument, getLength, getLocale, getParagraph, getParagraphLength, getParagraphs, getParagraphSelection, getParagraphSelection, getSelectedText, getSelection, getSelectionBounds, getShowCaret, getText, getText, getText, getText, getText, isBeingUpdated, lengthProperty, multiPlainChanges, multiRichChanges, plainTextChanges, replace, replace, replace, replace, replace, replace, replaceText, replaceText, replaceText, richChanges, selectedTextProperty, selectionBoundsProperty, selectionProperty, selectRange, selectRange, setShowCaret, showCaretProperty, subDocument, subDocument, subDocument, subDocument, textProperty
-
-
-
-
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.
-
setStyleCodecs
void setStyleCodecs(Codec<PS> paragraphStyleCodec, Codec<StyledSegment<SEG,S>> textStyleCodec)
-
getSegOps
SegmentOps<SEG,S> getSegOps()
Description copied from interface:TextEditingAreaReturns the object used for operating oversegmentsand their styles- Specified by:
getSegOpsin interfaceTextEditingArea<PS,SEG,S>
-
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.
-
-