Beispiel #1
0
 /** {@inheritDoc} */
 @Override
 void removeFocus() {
   super.removeFocus();
   if (!valueAtFocus_.equals(getText())) {
     HtmlInput.executeOnChangeHandlerIfAppropriate(this);
   }
   valueAtFocus_ = null;
 }
Beispiel #2
0
  /**
   * Sets the new value of this text area.
   *
   * <p>Note that this acts like 'pasting' the text, but to simulate characters entry you should use
   * {@link #type(String)}.
   *
   * @param newValue the new value
   */
  public final void setText(final String newValue) {
    initDefaultValue();
    setTextInternal(newValue);

    HtmlInput.executeOnChangeHandlerIfAppropriate(this);
  }