Package org.omegat.gui.editor
Class IEditor.CaretPosition
java.lang.Object
org.omegat.gui.editor.IEditor.CaretPosition
- Enclosing interface:
- IEditor
Storage for caret position and selection.
-
Constructor Summary
ConstructorsConstructorDescriptionCaretPosition(int position) CaretPosition(int selectionStart, int selectionEnd) -
Method Summary
Modifier and TypeMethodDescriptionstatic IEditor.CaretPositiongoToCharacterAtIndex(int location) Set caret to a specific character.static IEditor.CaretPositionWe can't define it once since 'position' can be changed later.
-
Constructor Details
-
CaretPosition
public CaretPosition(int position) -
CaretPosition
public CaretPosition(int selectionStart, int selectionEnd)
-
-
Method Details
-
startOfEntry
We can't define it once since 'position' can be changed later. -
goToCharacterAtIndex
Set caret to a specific character.- Parameters:
location- 0 when first character of String, otherwise location counts all text, both original language and translated text.- Returns:
- caret position.
-