com.google.gwt.user.client.ui.impl
Class TextBoxImplIE6
java.lang.Object
com.google.gwt.user.client.ui.impl.TextBoxImpl
com.google.gwt.user.client.ui.impl.TextBoxImplIE6
public class TextBoxImplIE6
- extends TextBoxImpl
IE6-specific implementation of
TextBoxImpl.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextBoxImplIE6
public TextBoxImplIE6()
getCursorPos
public int getCursorPos(Element elem)
- Overrides:
getCursorPos in class TextBoxImpl
getSelectionLength
public int getSelectionLength(Element elem)
- Overrides:
getSelectionLength in class TextBoxImpl
getTextAreaCursorPos
public int getTextAreaCursorPos(Element elem)
- The text reported in the text range does not include newline characters at
the end of the selection. So, we need to create 2 ranges and subtract a
character from one until the lengths are different. At that point, we know
exactly how many \r\n were truncated from the selection.
- Overrides:
getTextAreaCursorPos in class TextBoxImpl
getTextAreaSelectionLength
public int getTextAreaSelectionLength(Element elem)
- Overrides:
getTextAreaSelectionLength in class TextBoxImpl
setSelectionRange
public 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.
- Overrides:
setSelectionRange in class TextBoxImpl