コード例 #1
0
ファイル: HtmlTextArea.java プロジェクト: VVasanth/xelenium
 /** {@inheritDoc} */
 @Override
 void removeFocus() {
   super.removeFocus();
   if (!valueAtFocus_.equals(getText())) {
     HtmlInput.executeOnChangeHandlerIfAppropriate(this);
   }
   valueAtFocus_ = null;
 }
コード例 #2
0
ファイル: HtmlTextArea.java プロジェクト: VVasanth/xelenium
  /**
   * 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);
  }