使用 GWT + GXT。是否可以通过例如消息框来更改活动的行编辑器状态?我创建了一个事件,它调用带有文本区域的消息框,为了将该文本区域中的文本放入网格中,我需要调用 rowEditor.stopEditing(true),然后手动将文本插入数据网格,然后执行 rowEditor.startEditing(true) . 所以它看起来像:
re.stopEditing(true);
List<Model> list = data.getModels();
list.get(activeRow).set("key","value");
re.startEditing(activeRow, true);
它可以工作......但是如果需要,用户不能取消他的更改,因为它们已经被 re.stopEditing(true); 保存了。