MrExt
2 Jun 2009, 6:35 AM
isDirty() throws NPE when invoked after BeforeEdit event gets cancelled.
second call gets editing=true and values=null;
com.extjs.gxt.ui.client.widget.grid.RowEditor
@SuppressWarnings("unchecked")
publicvoid startEditing(int rowIndex, boolean doFocus) {
if (editing && isDirty()) {
showTooltip("You need to commit or cancel your changes");
return;
}
removeToolTip();
editing = true;
RowEditorEvent ree = new RowEditorEvent(this, rowIndex);
if (!fireEvent(Events.BeforeEdit, ree)) {
-> ensure editing = false state;
return;
}
second call gets editing=true and values=null;
com.extjs.gxt.ui.client.widget.grid.RowEditor
@SuppressWarnings("unchecked")
publicvoid startEditing(int rowIndex, boolean doFocus) {
if (editing && isDirty()) {
showTooltip("You need to commit or cancel your changes");
return;
}
removeToolTip();
editing = true;
RowEditorEvent ree = new RowEditorEvent(this, rowIndex);
if (!fireEvent(Events.BeforeEdit, ree)) {
-> ensure editing = false state;
return;
}