/** * Moves the selection to the end. */ public void moveSelectionToEnd() { initDoTypeProcessor(); selectionDelegate_.setSelectionStart(getData().length()); }
/** * Performs the effective type action, called after the keyPress event and before the keyUp event. * @param c the character you with to simulate typing * @param htmlElement the element in which typing occurs * @param lastType is this the last character to type */ protected void doType(final char c, final HtmlElement htmlElement, final boolean lastType) { initDoTypeProcessor(); doTypeProcessor_.doType(getData(), selectionDelegate_, c, htmlElement, lastType); }
/** * Performs the effective type action, called after the keyPress event and before the keyUp event. * * @param keyCode the key code wish to simulate typing * @param htmlElement the element in which typing occurs * @param lastType is this the last character to type */ protected void doType(final int keyCode, final HtmlElement htmlElement, final boolean lastType) { initDoTypeProcessor(); doTypeProcessor_.doType(getData(), selectionDelegate_, keyCode, htmlElement, lastType); }
/** * Performs the effective type action, called after the keyPress event and before the keyUp event. * @param c the character you with to simulate typing * @param startAtEnd whether typing should start at the text end or not * @param htmlElement the element in which typing occurs * @param lastType is this the last character to type */ protected void doType(final char c, final boolean startAtEnd, final HtmlElement htmlElement, final boolean lastType) { initDoTypeProcessor(); if (startAtEnd) { selectionDelegate_.setSelectionStart(getData().length()); } doTypeProcessor_.doType(getData(), selectionDelegate_, c, htmlElement, lastType); }
/** * Performs the effective type action, called after the keyPress event and before the keyUp event. * * @param keyCode the key code wish to simulate typing * @param startAtEnd whether typing should start at the text end or not * @param htmlElement the element in which typing occurs * @param lastType is this the last character to type */ protected void doType(final int keyCode, final boolean startAtEnd, final HtmlElement htmlElement, final boolean lastType) { initDoTypeProcessor(); if (startAtEnd) { selectionDelegate_.setSelectionStart(getData().length()); } doTypeProcessor_.doType(getData(), selectionDelegate_, keyCode, htmlElement, lastType); }