/** * {@inheritDoc} */ @Override public void focus() { super.focus(); valueAtFocus_ = getText(); }
/** * Returns the value of the {@code value} attribute. * @return the value of the {@code value} attribute */ @Override public String getValue() { return ((HtmlTextArea) getDomNodeOrDie()).getText(); }
/** * {@inheritDoc} */ @Override protected void doType(final char c, final boolean lastType) { doTypeProcessor_.doType(getText(), selectionDelegate_, c, this, lastType); }
/** * {@inheritDoc} */ @Override public void focus() { super.focus(); valueAtFocus_ = getText(); }
private void appendHtmlTextArea(final HtmlTextArea htmlTextArea) { if (isVisible(htmlTextArea)) { String text = htmlTextArea.getText(); text = text.replaceAll(" ", AS_TEXT_BLANK); text = text.replaceAll("\r?\n", AS_TEXT_NEW_LINE); text = text.replaceAll("\r", AS_TEXT_NEW_LINE); doAppend(text); } }
/** * {@inheritDoc} */ @Override public NameValuePair[] getSubmitNameValuePairs() { String text = getText(); text = text.replace("\r\n", "\n").replace("\n", "\r\n"); return new NameValuePair[]{new NameValuePair(getNameAttribute(), text)}; }
private void appendHtmlTextArea(final HtmlTextArea htmlTextArea) { if (isVisible(htmlTextArea)) { String text = htmlTextArea.getText(); text = text.replaceAll(" ", AS_TEXT_BLANK); text = text.replaceAll("\r?\n", AS_TEXT_NEW_LINE); text = text.replaceAll("\r", AS_TEXT_NEW_LINE); doAppend(text); } }
/** * {@inheritDoc} */ public NameValuePair[] getSubmitKeyValuePairs() { String text = getText(); text = text.replace("\r\n", "\n").replace("\n", "\r\n"); return new NameValuePair[]{new NameValuePair(getNameAttribute(), text)}; }
/** * {@inheritDoc} */ public NameValuePair[] getSubmitKeyValuePairs() { String text = getText(); text = text.replace("\r\n", "\n").replace("\n", "\r\n"); return new NameValuePair[]{new NameValuePair(getNameAttribute(), text)}; }
/** * {@inheritDoc} */ @Override public NameValuePair[] getSubmitNameValuePairs() { String text = getText(); text = text.replace("\r\n", "\n").replace("\n", "\r\n"); return new NameValuePair[]{new NameValuePair(getNameAttribute(), text)}; }
@Override void removeFocus() { super.removeFocus(); if (!valueAtFocus_.equals(getText())) { HtmlInput.executeOnChangeHandlerIfAppropriate(this); } valueAtFocus_ = null; }
@Override void removeFocus() { super.removeFocus(); if (!valueAtFocus_.equals(getText())) { HtmlInput.executeOnChangeHandlerIfAppropriate(this); } valueAtFocus_ = null; }
/** * {@inheritDoc} */ @Override public void removeFocus() { super.removeFocus(); if (valueAtFocus_ != null && !valueAtFocus_.equals(getText())) { HtmlInput.executeOnChangeHandlerIfAppropriate(this); } valueAtFocus_ = null; }
@Override void removeFocus() { super.removeFocus(); if (!valueAtFocus_.equals(getText())) { HtmlInput.executeOnChangeHandlerIfAppropriate(this); } valueAtFocus_ = null; }
public String getValue() { assertElementNotStale(); if (element instanceof HtmlTextArea) return ((HtmlTextArea) element).getText(); return getAttribute("value"); }
/** * Returns the value of the "value" attribute. * @return the value of the "value" attribute */ @Override public String jsxGet_value() { String value = ((HtmlTextArea) getDomNodeOrDie()).getText(); if (getBrowserVersion().hasFeature(BrowserVersionFeatures.TEXTAREA_CRNL)) { value = value.replaceAll("([^\\r])\\n", "$1\r\n"); } return value; }
/** * Returns the value of the "value" attribute. * @return the value of the "value" attribute */ @Override public String jsxGet_value() { String value = ((HtmlTextArea) getDomNodeOrDie()).getText(); if (getBrowserVersion().hasFeature(BrowserVersionFeatures.TEXTAREA_CRNL)) { value = value.replaceAll("([^\\r])\\n", "$1\r\n"); } return value; }
/** * {@inheritDoc} */ @Override protected void doType(final char c, final boolean shiftKey, final boolean ctrlKey, final boolean altKey) { doTypeProcessor_.doType(getText(), getSelectionStart(), getSelectionEnd(), c, shiftKey, ctrlKey, altKey); }