* com.smartgwt.client.widgets.form.events .ItemChangedHandler)
*/
public HandlerRegistration addItemChangedHandler(ItemChangedHandler handler) {
MultiHandlerRegistration registration = new MultiHandlerRegistration();
// Due to custom made FormItems, we can't set the handler on the form anymore...
final ItemChangedHandler itemChangedHandler = handler;
registration.addRegistration(manager.addHandler(ItemChangedEvent.getType(), handler));
for (final FormItem formItem : formWidget.getFields()) {
ChangedHandler h = new ChangedHandler() {
public void onChanged(ChangedEvent event) {
itemChangedHandler.onItemChanged(new ItemChangedEvent(formItem.getJsObj()));
}
};
registration.addRegistration(formItem.addChangedHandler(h));
}
return registration;