RootPanel.get().add(this);
} else {
ComponentHelper.doAttach(this);
}
EditorEvent e = new EditorEvent(this);
e.setBoundEl(boundEl);
e.setValue(v);
if (!fireEvent(Events.BeforeStartEdit, e)) {
return;
}
// since field may be reused, store may be filtered
if (field instanceof ComboBox) {
((ComboBox) field).getStore().clearFilters();
}
startValue = preProcessValue(value);
field.setValue(startValue);
editing = true;
show();
doAutoSize();
el().alignTo(boundEl.dom, alignment, new int[] {0, -1});
field.focus();
e.setValue(startValue);
fireEvent(Events.StartEdit, e);
}