void handleFocusLostValueChanged() { executeOnChangeHandlerIfAppropriate(this); }
void handleFocusLostValueChanged() { executeOnChangeHandlerIfAppropriate(this); }
/** * Sets the new value of this text area. * * Note that this acts like 'pasting' the text, but to simulate characters entry * you should use {@link #type(String)}. * * @param newValue the new value */ @Override public final void setText(final String newValue) { setTextInternal(newValue); HtmlInput.executeOnChangeHandlerIfAppropriate(this); }
/** * Sets the new value of this text area. * * Note that this acts like 'pasting' the text, but to simulate characters entry * you should use {@link #type(String)}. * * @param newValue the new value */ @Override public final void setText(final String newValue) { setTextInternal(newValue); HtmlInput.executeOnChangeHandlerIfAppropriate(this); }
@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; }
/** * {@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; }
@Override void removeFocus() { super.removeFocus(); if (!valueAtFocus_.equals(getText())) { HtmlInput.executeOnChangeHandlerIfAppropriate(this); } valueAtFocus_ = null; }
/** * Sets the content of the "value" attribute, executing onchange handlers if appropriate. * This method returns the page contained by this element's window after the value is set, * which may or may not be the same as the original page. * @param newValue the new content * @return the page contained by this element's window after the value is set */ public Page setValueAttribute(final String newValue) { WebAssert.notNull("newValue", newValue); setAttribute("value", newValue); return executeOnChangeHandlerIfAppropriate(this); }
/** * Sets the content of the "value" attribute, executing onchange handlers if appropriate. * This method returns the page contained by this element's window after the value is set, * which may or may not be the same as the original page. * @param newValue the new content * @return the page contained by this element's window after the value is set */ public Page setValueAttribute(final String newValue) { WebAssert.notNull("newValue", newValue); setAttribute("value", newValue); return executeOnChangeHandlerIfAppropriate(this); }
/** * Sets the content of the "value" attribute, executing onchange handlers if appropriate. * This method returns the page contained by this element's window after the value is set, * which may or may not be the same as the original page. * @param newValue the new content * @return the page contained by this element's window after the value is set */ public Page setValueAttribute(final String newValue) { WebAssert.notNull("newValue", newValue); setAttribute("value", newValue); return executeOnChangeHandlerIfAppropriate(this); }
/** * Sets the new value of this text area. * * 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); }
/** * Sets the new value of this text area. * * 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); }
/** * Sets the new value of this text area. * * 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); }
/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/> * * Sets the "selected" state of the specified option. If this "select" element * is single-select, then calling this method will deselect all other options. * * Only options that are actually in the document may be selected. * * @param isSelected true if the option is to become selected * @param selectedOption the value of the option that is to change * @param invokeOnFocus whether to set focus or no. * @return the page that occupies this window after this change is made (may or * may not be the same as the original page) */ public Page setSelectedAttribute(final HtmlOption selectedOption, final boolean isSelected, final boolean invokeOnFocus) { if (isSelected && invokeOnFocus) { ((HtmlPage) getPage()).setFocusedElement(this); } final boolean changeSelectedState = (selectedOption.isSelected() != isSelected); if (changeSelectedState) { doSelectOption(selectedOption, isSelected); return HtmlInput.executeOnChangeHandlerIfAppropriate(this); } // nothing to do return getPage(); }
/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/> * * Sets the "selected" state of the specified option. If this "select" element * is single-select, then calling this method will deselect all other options. * * Only options that are actually in the document may be selected. * * @param isSelected true if the option is to become selected * @param selectedOption the value of the option that is to change * @param invokeOnFocus whether to set focus or no. * @return the page that occupies this window after this change is made (may or * may not be the same as the original page) */ public Page setSelectedAttribute(final HtmlOption selectedOption, final boolean isSelected, final boolean invokeOnFocus) { if (isSelected && invokeOnFocus) { ((HtmlPage) getPage()).setFocusedElement(this); } final boolean changeSelectedState = (selectedOption.isSelected() != isSelected); if (changeSelectedState) { doSelectOption(selectedOption, isSelected); return HtmlInput.executeOnChangeHandlerIfAppropriate(this); } // nothing to do return getPage(); }
/** * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br/> * * Sets the "selected" state of the specified option. If this "select" element * is single-select, then calling this method will deselect all other options. * * Only options that are actually in the document may be selected. * * @param isSelected true if the option is to become selected * @param selectedOption the value of the option that is to change * @param invokeOnFocus whether to set focus or no. * @return the page that occupies this window after this change is made (may or * may not be the same as the original page) */ public Page setSelectedAttribute(final HtmlOption selectedOption, final boolean isSelected, final boolean invokeOnFocus) { if (isSelected && invokeOnFocus) { ((HtmlPage) getPage()).setFocusedElement(this); } final boolean changeSelectedState = (selectedOption.isSelected() != isSelected); if (changeSelectedState) { doSelectOption(selectedOption, isSelected); return HtmlInput.executeOnChangeHandlerIfAppropriate(this); } // nothing to do return getPage(); }
HtmlInput.executeOnChangeHandlerIfAppropriate(this);