@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface TextContext
Modifier and Type | Field and Description |
---|---|
static int |
EDITABLE
The returned text is in editable context.
|
static int |
EDITABLE_IN_FILTERED_CONDITIONAL_PROFILING
The returned text is in editable context but a profiling condition is applied and filters the
node when the output will be published..
|
static int |
NOT_EDITABLE_IN_DELETE_CHANGE_TRACKING
The returned text is in delete change tracking context.
|
static int |
NOT_EDITABLE_IN_READ_ONLY
The returned text is in an entity or content reference.
|
Modifier and Type | Method and Description |
---|---|
int |
getEditableState()
Check if we can edit at the current iterator offset.
|
AuthorNode |
getNode()
Get the parent node surrounding this text.
|
java.lang.CharSequence |
getText()
Gets the current text from the context.
|
int |
getTextEndOffset()
Gets the end offset of the returned text.
|
int |
getTextStartOffset()
Gets the start offset of the returned text.
|
boolean |
inSpacePreserve()
Check if the range is in a CSS white-space preserve context.
|
boolean |
inVisibleContent()
Check if the range is in visible content.
|
void |
replaceText(java.lang.CharSequence newTextContent)
Replaces the current context text with the new text content.
|
static final int EDITABLE
static final int EDITABLE_IN_FILTERED_CONDITIONAL_PROFILING
static final int NOT_EDITABLE_IN_DELETE_CHANGE_TRACKING
static final int NOT_EDITABLE_IN_READ_ONLY
AuthorNode getNode()
null
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
java.lang.CharSequence getText()
int getTextStartOffset()
int getTextEndOffset()
int getEditableState()
true
if we can edit at the current iterator offset or false
if we are in read-only content (entities, content references or delete change tracking).boolean inVisibleContent()
true
if the range is in visible content.boolean inSpacePreserve()
true
if the range is in space preserve context.Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
void replaceText(java.lang.CharSequence newTextContent)
newTextContent
- The new text content.© Copyright Syncro Soft SRL 2002 - 2021. All rights reserved.