|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface AuthorSelectionModel
Get the Author selection model containing access to all Author selection intervals and methods for adding simple and multiple selections.
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.
Method Summary | |
---|---|
void |
addSelection(int startOffset,
int endOffset)
Select the interval between start and end offset. |
void |
clearSelection()
Clears all selections from Author editor page and resets the selection interpretation mode (see getSelectionInterpretationMode() ). |
SelectionInterpretationMode |
getSelectionInterpretationMode()
Get the interpretation mode of the actual selection from the Author editor page. |
ContentInterval |
getSelectionInterval()
Get the current selection interval. |
java.util.List<ContentInterval> |
getSelectionIntervals()
Get all Author editor page selection intervals. |
boolean |
hasMultipleSelection()
Check if the Author editor page has multiple selections. |
boolean |
hasSelection()
Check if the Author editor page has selection. |
void |
setSelection(int startOffset,
int endOffset)
Select the interval between start and end offset. |
void |
setSelectionInterpretationMode(SelectionInterpretationMode interpretationMode)
Impose the interpretation mode of the actual selection from the Author editor page. |
Method Detail |
---|
void setSelectionInterpretationMode(SelectionInterpretationMode interpretationMode)
SelectionInterpretationMode
for more details about the interpretation
of selection in Author mode.
interpretationMode
- The selection interpretation mode.SelectionInterpretationMode getSelectionInterpretationMode()
SelectionInterpretationMode
for more details about the interpretation
of selection in Author mode.
java.util.List<ContentInterval> getSelectionIntervals()
ContentInterval
contains the inclusive
start selection offset and the exclusive end selection offset.
ContentInterval.getStartOffset()
and ContentInterval.getEndOffset()
will return the caret position). Otherwise, the last ContentInterval
from the list corresponds with the last selection made in the editor.
null
. If there is no selection,
the list contains a single ContentInterval
that points to the caret offset.
ContentInterval getSelectionInterval()
getSelectionIntervals()
selections list). If the caret offset is not included in a selection range,
the selection interval points to the caret offset (both ContentInterval.getStartOffset()
and ContentInterval.getEndOffset()
will return the caret position).
ContentInterval
contains the inclusive start selection
offset and the exclusive end selection offset.
null
. If there is no selection,
both the start and end offset of the interval will be the caret position.
boolean hasSelection()
true
if there is a selection in Author editor page.boolean hasMultipleSelection()
true
if there are at least two selections in
Author editor page.void setSelection(int startOffset, int endOffset)
getSelectionInterval()
method).
startOffset
- Inclusive start offsetendOffset
- Exclusive end offsetvoid addSelection(int startOffset, int endOffset)
getSelectionInterval()
method).
getSelectionIntervals()
method to get all
the selection intervals from Author editor page.
startOffset
- Inclusive start offsetendOffset
- Exclusive end offsetvoid clearSelection()
getSelectionInterpretationMode()
).
The caret will remain in the same position.
getSelectionIntervals()
will return a single
selection interval that points to the caret offset (both ContentInterval.getStartOffset()
and ContentInterval.getEndOffset()
will return the caret position).
|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |