我正在使用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(); ?