public interface ActionPlan
Document or CaretModel.
The draft is used to perform preemptive rendering in editor before acquiring a write lock.
The interface is simplistic and can be extended later to support multiple carets, selection, etc.
| Modifier and Type | Method and Description |
|---|---|
int |
getCaretOffset()
Returns the offset of the caret in the text.
|
ImmutableCharSequence |
getText()
Retrieves the current text content.
|
void |
replace(int begin,
int end,
java.lang.String s)
Replaces the specified range of text with the specified string.
|
void |
setCaretOffset(int offset)
Moves the caret to the specified offset in the text.
|
ImmutableCharSequence getText()
void replace(int begin,
int end,
java.lang.String s)
begin - the start offset of the range to replace.end - the end offset of the range to replace.s - the text to replace with.int getCaretOffset()
void setCaretOffset(int offset)
offset - the offset to move to.