
public class TextBoxImplIE8 extends TextBoxImpl
TextBoxImpl.| Constructor and Description |
|---|
TextBoxImplIE8() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCursorPos(Element elem) |
int |
getSelectionLength(Element elem) |
int |
getTextAreaCursorPos(Element elem)
The text reported in the text range does not include newline characters at
the end of the selection.
|
int |
getTextAreaSelectionLength(Element elem) |
void |
setSelectionRange(Element elem,
int pos,
int length)
Moving the start 1 character will move across a \r\n, but \r\n counts as
two characters, so we need to offset the position accordingly.
|
public int getCursorPos(Element elem)
getCursorPos in class TextBoxImplpublic int getSelectionLength(Element elem)
getSelectionLength in class TextBoxImplpublic int getTextAreaCursorPos(Element elem)
getTextAreaCursorPos in class TextBoxImplpublic int getTextAreaSelectionLength(Element elem)
getTextAreaSelectionLength in class TextBoxImplpublic void setSelectionRange(Element elem, int pos, int length)
setSelectionRange in class TextBoxImplCopyright © 2018. All rights reserved.