/** * Sets this object's value. Fires {@link com.google.gwt.event.logical.shared.ValueChangeEvent} * when fireEvents is true and the new value does not equal the existing value. * * <p>It is acceptable to fail assertions or throw (documented) unchecked exceptions in response * to bad values. * * @param value the object's new value * @param fireEvents fire events if true and value is new */ @Override public void setValue(String value, boolean fireEvents) { setText(value); }
@Override public void setText(String text) { delegate.setText(text); }
/** * Sets this object's value without firing any events. This should be identical to calling * setValue(value, false). * * <p>It is acceptable to fail assertions or throw (documented) unchecked exceptions in response * to bad values. * * <p>Widgets must accept null as a valid value. By convention, setting a widget to null clears * value, calling getValue() on a cleared widget returns null. Widgets that can not be cleared * (e.g. {@link com.google.gwt.user.client.ui.CheckBox}) must find another valid meaning for null * input. * * @param value the object's new value */ @Override public void setValue(String value) { setText(value); }