我正在使用GWT2.3 celltable
如何调用GWT’-CellTable-CustomEditTextCells api,如Commit()&使用javascript / jquery取消()froml?
以下是EdittextCell-GWT的cancel()
在javascript中执行此操作的任何替代方法?
/** * Commit the current value. * * @param context the context of the cell * @param parent the parent Element * @param viewData the {@link ViewData} object * @param valueUpdater the {@link ValueUpdater} */ private void commit(Context context,Element parent,ViewData viewData,ValueUpdater<String> valueUpdater) { String value = updateViewData(parent,viewData,false); clearInput(getInputElement(parent)); setValue(context,parent,viewData.getOriginal()); if (valueUpdater != null) { valueUpdater.update(value); } }
以下是EdittextCell-GWT的cancel()
在javascript中执行此操作的任何替代方法
/** * Convert the cell to non-edit mode. * * @param context the context of the cell * @param parent the parent Element * @param value the value associated with the cell */ private void cancel(Context context,String value) { clearInput(getInputElement(parent)); setValue(context,value); }
使用javascript我想更新所选单元格的新值&将其转换为非编辑模式如何使用javascript / jquery?
额外信息:
当EditTextCell处于非编辑模式时,它的内部html代码是
单击editTextCell后,单元格从非编辑模式转换为编辑模式.
我在那个单元格中创建了Input元素Img.
点击图片我打开了jquerys datepicker.
点击jquery datepicker上的“完成”按钮,我需要将该单元转换为非edt模式,并将新值更新为GWT celltable提供的valueUpdater.
valueUpdater将新值更新为celltable.
请提供解决方案或解决此问题的任何指针.
提前致谢.
解决方法
你试过$(‘#renderedId’).val(“updatedValue”).blur(); ?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。