Package org.eclnt.util.valuemgmt
Class TextSelectionInfo
java.lang.Object
org.eclnt.util.valuemgmt.TextSelectionInfo
Information about selected text of a FIELD/TEXTAREA/TEXTEDITOR
-
Constructor Summary
ConstructorDescriptionTextSelectionInfo
(int caretPosition, int selectionStart, int selectionEnd) TextSelectionInfo
(int caretPosition, int selectionStart, int selectionEnd, int left, int top, int height) -
Method Summary
Modifier and TypeMethodDescriptionint
int
Pixel height of text at start position.int
getLeft()
Pixel left position.int
int
int
getTop()
Pixel top position.void
setCaretPosition
(int caretPosition) void
setSelectionEnd
(int selectionEnd) void
setSelectionStart
(int selectionStart)
-
Constructor Details
-
TextSelectionInfo
public TextSelectionInfo() -
TextSelectionInfo
public TextSelectionInfo(int caretPosition, int selectionStart, int selectionEnd) -
TextSelectionInfo
public TextSelectionInfo(int caretPosition, int selectionStart, int selectionEnd, int left, int top, int height)
-
-
Method Details
-
getCaretPosition
public int getCaretPosition() -
setCaretPosition
public void setCaretPosition(int caretPosition) -
getSelectionStart
public int getSelectionStart() -
setSelectionStart
public void setSelectionStart(int selectionStart) -
getSelectionEnd
public int getSelectionEnd() -
setSelectionEnd
public void setSelectionEnd(int selectionEnd) -
getLeft
public int getLeft()Pixel left position. -
getTop
public int getTop()Pixel top position. -
getHeight
public int getHeight()Pixel height of text at start position.
-