public final class SimpleEditableStyledDocument<PS,S> extends Object implements EditableStyledDocument<PS,S>
EditableStyledDocument| Type | Property and Description |
|---|---|
org.reactfx.SuspendableNo |
beingUpdated |
org.reactfx.value.Val<Integer> |
length |
org.reactfx.value.Val<String> |
text |
TwoDimensional.Bias, TwoDimensional.Position| Constructor and Description |
|---|
SimpleEditableStyledDocument(PS initialParagraphStyle,
S initialStyle)
Creates an empty
EditableStyledDocument |
| Modifier and Type | Method and Description |
|---|---|
org.reactfx.SuspendableNo |
beingUpdatedProperty() |
StyledDocument<PS,S> |
concat(StyledDocument<PS,S> that) |
int |
getLength()
Gets the value of the property length.
|
org.reactfx.collection.LiveList<Paragraph<PS,S>> |
getParagraphs() |
String |
getText()
Gets the value of the property text.
|
boolean |
isBeingUpdated() |
int |
length() |
org.reactfx.value.Val<Integer> |
lengthProperty() |
TwoDimensional.Position |
offsetToPosition(int offset,
TwoDimensional.Bias bias) |
TwoDimensional.Position |
position(int major,
int minor) |
void |
replace(int start,
int end,
StyledDocument<PS,S> replacement) |
org.reactfx.EventStream<RichTextChange<PS,S>> |
richChanges() |
void |
setParagraphStyle(int parIdx,
PS style) |
void |
setStyle(int paragraph,
int fromCol,
int toCol,
S style) |
void |
setStyle(int from,
int to,
S style) |
void |
setStyle(int paragraph,
S style) |
void |
setStyleSpans(int paragraph,
int from,
StyleSpans<? extends S> styleSpans) |
void |
setStyleSpans(int from,
StyleSpans<? extends S> styleSpans) |
ReadOnlyStyledDocument<PS,S> |
snapshot()
Read-only snapshot of the current state of this document.
|
StyledDocument<PS,S> |
subSequence(int start,
int end) |
org.reactfx.value.Val<String> |
textProperty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitplainChangescharAt, getAbsolutePosition, getParagraphStyle, getParagraphStyleAtPosition, getStyleAtPosition, getStyleAtPosition, getStyleOfChar, getStyleOfChar, getStyleRangeAtPosition, getStyleRangeAtPosition, getStyleSpans, getStyleSpans, getStyleSpans, getText, getText, subDocument, subSequencepublic org.reactfx.value.Val<String> textProperty
textProperty in interface EditableStyledDocument<PS,S>getText()public org.reactfx.value.Val<Integer> lengthProperty
lengthProperty in interface EditableStyledDocument<PS,S>getLength()public final org.reactfx.SuspendableNo beingUpdatedProperty
beingUpdatedProperty in interface EditableStyledDocument<PS,S>public SimpleEditableStyledDocument(PS initialParagraphStyle, S initialStyle)
EditableStyledDocumentpublic org.reactfx.EventStream<RichTextChange<PS,S>> richChanges()
richChanges in interface EditableStyledDocument<PS,S>public String getText()
getText in interface StyledDocument<PS,S>public org.reactfx.value.Val<String> textProperty()
textProperty in interface EditableStyledDocument<PS,S>getText()public int getLength()
getLength in interface EditableStyledDocument<PS,S>public org.reactfx.value.Val<Integer> lengthProperty()
lengthProperty in interface EditableStyledDocument<PS,S>getLength()public int length()
length in interface StyledDocument<PS,S>public org.reactfx.collection.LiveList<Paragraph<PS,S>> getParagraphs()
getParagraphs in interface EditableStyledDocument<PS,S>getParagraphs in interface StyledDocument<PS,S>public ReadOnlyStyledDocument<PS,S> snapshot()
EditableStyledDocumentsnapshot in interface EditableStyledDocument<PS,S>public final org.reactfx.SuspendableNo beingUpdatedProperty()
beingUpdatedProperty in interface EditableStyledDocument<PS,S>public final boolean isBeingUpdated()
isBeingUpdated in interface EditableStyledDocument<PS,S>public TwoDimensional.Position position(int major, int minor)
position in interface TwoDimensionalpublic TwoDimensional.Position offsetToPosition(int offset, TwoDimensional.Bias bias)
offsetToPosition in interface TwoDimensionalpublic void replace(int start,
int end,
StyledDocument<PS,S> replacement)
replace in interface EditableStyledDocument<PS,S>public void setStyle(int from,
int to,
S style)
setStyle in interface EditableStyledDocument<PS,S>public void setStyle(int paragraph,
S style)
setStyle in interface EditableStyledDocument<PS,S>public void setStyle(int paragraph,
int fromCol,
int toCol,
S style)
setStyle in interface EditableStyledDocument<PS,S>public void setStyleSpans(int from,
StyleSpans<? extends S> styleSpans)
setStyleSpans in interface EditableStyledDocument<PS,S>public void setStyleSpans(int paragraph,
int from,
StyleSpans<? extends S> styleSpans)
setStyleSpans in interface EditableStyledDocument<PS,S>public void setParagraphStyle(int parIdx,
PS style)
setParagraphStyle in interface EditableStyledDocument<PS,S>public StyledDocument<PS,S> concat(StyledDocument<PS,S> that)
concat in interface StyledDocument<PS,S>public StyledDocument<PS,S> subSequence(int start, int end)
subSequence in interface StyledDocument<PS,S>