TextEditingArea<PS,SEG,S>
ClipboardActions<PS,SEG,S>
CodeArea
, GenericStyledArea
, InlineCssTextArea
, InlineCssTextField
, StyleClassedTextArea
, StyleClassedTextField
, StyledTextArea
, StyledTextField
public interface EditActions<PS,SEG,S> extends TextEditingArea<PS,SEG,S>
TextEditingArea
.anchor, beingUpdated, caretBounds, caretColumn, caretPosition, currentParagraph, length, selectedText, selectionBounds, selection, showCaret, text
Modifier and Type | Method | Description |
---|---|---|
default void |
append(StyledDocument<PS,SEG,S> document) |
Appends the given rich-text content to the end of this text-editing area.
|
default void |
append(SEG seg,
S style) |
Append text with a style.
|
default void |
appendText(java.lang.String text) |
Appends the given text to the end of the text content.
|
default void |
clear() |
Clears the area, so that it displays only an empty paragraph.
|
default void |
deleteNextChar() |
Deletes the character that follows the current caret position
from the text.
|
default void |
deletePreviousChar() |
Deletes the character that precedes the current caret position
from the text.
|
default void |
deleteText(int start,
int end) |
Removes a range of text.
|
default void |
deleteText(int startParagraph,
int startColumn,
int endParagraph,
int endColumn) |
Removes a range of text.
|
default void |
deleteText(javafx.scene.control.IndexRange range) |
Removes a range of text.
|
default void |
insert(int paragraphIndex,
int columnPosition,
StyledDocument<PS,SEG,S> document) |
Inserts the given rich-text content at the position returned from
getAbsolutePosition(paragraphIndex, columnPosition) . |
default void |
insert(int position,
StyledDocument<PS,SEG,S> document) |
Inserts the given rich-text content at the given position.
|
default void |
insert(int position,
SEG seg,
S style) |
Inserts text with a style at the given position.
|
default void |
insertText(int paragraphIndex,
int columnPosition,
java.lang.String text) |
Inserts the given text at the position returned from
getAbsolutePosition(paragraphIndex, columnPosition) . |
default void |
insertText(int position,
java.lang.String text) |
Inserts the given text at the given position.
|
default void |
moveSelectedText(int position) |
If something is currently selected and the given position is outside of the selection, moves the selected
rich-text document to the given position by deleting it from the area and re-inserting it at the given position.
|
default void |
replace(StyledDocument<PS,SEG,S> replacement) |
Replaces the entire content with the given rich-text content.
|
default void |
replaceSelection(java.lang.String replacement) |
Replaces the selection with the given replacement String.
|
default void |
replaceSelection(StyledDocument<PS,SEG,S> replacement) |
Replaces the selection with the given rich-text replacement.
|
default void |
replaceText(java.lang.String replacement) |
Replaces the entire content with the given text.
|
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, getSegOps, 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
default void appendText(java.lang.String text)
default void append(StyledDocument<PS,SEG,S> document)
default void insertText(int position, java.lang.String text)
position
- The position to insert the text.text
- The text to insert.default void insertText(int paragraphIndex, int columnPosition, java.lang.String text)
getAbsolutePosition(paragraphIndex, columnPosition)
.
Caution: see TextEditingArea.getAbsolutePosition(int, int)
to know how the column index argument
can affect the returned position.
text
- The text to insertdefault void insert(int position, StyledDocument<PS,SEG,S> document)
position
- The position to insert the text.document
- The rich-text content to insert.default void insert(int position, SEG seg, S style)
default void insert(int paragraphIndex, int columnPosition, StyledDocument<PS,SEG,S> document)
getAbsolutePosition(paragraphIndex, columnPosition)
.
Caution: see TextEditingArea.getAbsolutePosition(int, int)
to know how the column index argument
can affect the returned position.
document
- The rich-text content to insert.default void deleteText(javafx.scene.control.IndexRange range)
range
- The range of text to delete. It must not be null. Its start and end values specify the start
and end positions within the area.deleteText(int, int)
default void deleteText(int start, int end)
0 <= start <= end <= getLength()
.start
- Start position of the range to removeend
- End position of the range to removedefault void deleteText(int startParagraph, int startColumn, int endParagraph, int endColumn)
0 <= start <= end <= getLength()
where
start = getAbsolutePosition(startParagraph, startColumn);
and is inclusive, and
int end = getAbsolutePosition(endParagraph, endColumn);
and is exclusive.
Caution: see TextEditingArea.getAbsolutePosition(int, int)
to know how the column index argument
can affect the returned position.
default void deletePreviousChar()
default void deleteNextChar()
default void clear()
default void replaceText(java.lang.String replacement)
default void replace(StyledDocument<PS,SEG,S> replacement)
default void replaceSelection(java.lang.String replacement)
default void replaceSelection(StyledDocument<PS,SEG,S> replacement)
default void moveSelectedText(int position)