org.fxmisc.richtext.TextEditingArea .
RichTextChange) and non-style changes (PlainTextChange)
in a org.fxmisc.richtext.TextEditingArea .
| Modifier and Type | Field and Description |
|---|---|
| protected final S | |
| protected final int | |
| protected final S |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract S | |
| protected abstract Self | |
| public boolean | equals(Object other)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public S | |
| public int | |
| public int | |
| public int | |
| public int | |
| public S | |
| public int | |
| protected abstract int | |
| public Self | invert()
Returns a new subclass of |
| public final boolean | isIdentity()
Returns true if this change is an identity change: applying it does nothing as it removes what it inserts. |
| public Optional | Returns: a new merged change if changes can be merged,null otherwise.change to merge with this change. latter)Merges this change with the given change, if possible. |
| protected abstract int | |
| protected abstract S | |
| public final String |
| inserted | back to summary |
|---|---|
| protected final S inserted | |
| position | back to summary |
|---|---|
| protected final int position | |
| removed | back to summary |
|---|---|
| protected final S removed | |
| TextChange | back to summary |
|---|---|
| public TextChange(int position, S removed, S inserted) | |
| concat | back to summary |
|---|---|
| protected abstract S concat(S a, S b) | |
| create | back to summary |
|---|---|
| protected abstract Self create(int position, S removed, S inserted) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getInserted | back to summary |
|---|---|
| public S getInserted() | |
| getInsertionEnd | back to summary |
|---|---|
| public int getInsertionEnd() Returns the position where the inserted ends (e.g. | |
| getNetLength | back to summary |
|---|---|
| public int getNetLength() Gets the net length of this change (i.e., | |
| getPosition | back to summary |
|---|---|
| public int getPosition() Gets the start position of where the replacement happened | |
| getRemovalEnd | back to summary |
|---|---|
| public int getRemovalEnd() Returns the position where the removal ends (e.g. | |
| getRemoved | back to summary |
|---|---|
| public S getRemoved() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| insertedLength | back to summary |
|---|---|
| protected abstract int insertedLength() | |
| invert | back to summary |
|---|---|
| public Self invert() Returns a new subclass of | |
| isIdentity | back to summary |
|---|---|
| public final boolean isIdentity() Returns true if this change is an identity change: applying it does nothing as it removes what it inserts.
See also | |
| mergeWith | back to summary |
|---|---|
| public Optional Merges this change with the given change, if possible. This change is considered to be the former and the given change is considered to be the latter. Changes can be merged if either
| |
| removedLength | back to summary |
|---|---|
| protected abstract int removedLength() | |
| sub | back to summary |
|---|---|
| protected abstract S sub(S s, int from, int to) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |