Top Description Methods
org.fxmisc.richtext

public Interface ClipboardActions<PS, SEG, S>

Additional top-level class in compilation unit: ClipboardHelper.

extends EditActions<PS, SEG, S>
Known Direct Implementers
org.fxmisc.richtext.GenericStyledArea
Static Imports
org.fxmisc.richtext.ClipboardHelper.*

Clipboard actions for TextEditingArea.

Method Summary

Modifier and TypeMethod and Description
public default void
copy()

Transfers the currently selected text to the clipboard, leaving the current selection.

public default void
cut()

Transfers the currently selected text to the clipboard, removing the current selection.

public SegmentOps<SEG, S>
getSegOps()

Redeclares org.fxmisc.richtext.TextEditingArea.getSegOps.

Returns the object used for operating over segments and their styles

public Optional<Tuple2<Codec<PS>, Codec<StyledSegment<SEG, S>>>>
getStyleCodecs()

Gets codecs to encode/decode style information to/from binary format.

public default void
paste()

Inserts the content from the clipboard into this text-editing area, replacing the current selection.

public void
setStyleCodecs(Codec<PS> paragraphStyleCodec, Codec<StyledSegment<SEG, S>> textStyleCodec)

Inherited from org.fxmisc.richtext.EditActions:
appendappendappendTextcleardeleteNextChardeletePreviousChardeleteTextdeleteTextdeleteTextinsertinsertinsertinsertTextinsertTextmoveSelectedTextreplacereplaceSelectionreplaceSelectionreplaceText

Method Detail

copyback to summary
public default void copy()

Transfers the currently selected text to the clipboard, leaving the current selection.

cutback to summary
public default void cut()

Transfers the currently selected text to the clipboard, removing the current selection.

getSegOpsback to summary
public SegmentOps<SEG, S> getSegOps()

Redeclares org.fxmisc.richtext.TextEditingArea.getSegOps.

Doc from org.fxmisc.richtext.TextEditingArea.getSegOps.

Returns the object used for operating over segments and their styles

getStyleCodecsback to summary
public 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.

pasteback to summary
public 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.

setStyleCodecsback to summary
public void setStyleCodecs(Codec<PS> paragraphStyleCodec, Codec<StyledSegment<SEG, S>> textStyleCodec)