138139140141142143144145
throw new RuntimeException("Cannot set value of boolean field \"" + getFullyQualifiedId() + "\" to a non-Boolean value."); Object oldValue = value; value = (Boolean)object; if (value != oldValue) { getForm().addWidgetEvent(new ValueChangedEvent(this, oldValue, value)); } }
179180181182183184185186187
this.needsValidate = true; this.enteredValue = definition.getDatatype().convertToString(newValue, getForm().getLocale()); if (changed) { getForm().addWidgetEvent(new ValueChangedEvent(this, oldValue, newValue)); } } }