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 TextBoxImpl
public int getSelectionLength(Element elem)
getSelectionLength
in class TextBoxImpl
public int getTextAreaCursorPos(Element elem)
getTextAreaCursorPos
in class TextBoxImpl
public int getTextAreaSelectionLength(Element elem)
getTextAreaSelectionLength
in class TextBoxImpl
public void setSelectionRange(Element elem, int pos, int length)
setSelectionRange
in class TextBoxImpl
Copyright © 2018. All rights reserved.