如何从javascript/jquery调用GWT'-CellTable-CustomEditTextCells api,如Commit()和Cancel()?

Sta*_*low 5 javascript java jquery gwt

我正在使用GWT2.3 celltable

如何使用javascript/jquery调用GWT'-CellTable-CustomEditTextCells api,如Commit()和Cancel()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);
    }
  }
Run Code Online (Sandbox Code Playgroud)

以下是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, Element parent, String value) {
    clearInput(getInputElement(parent));
    setValue(context, parent, value);
  }
Run Code Online (Sandbox Code Playgroud)

使用javascript我想更新所选单元格的新值并将其转换为非编辑模式如何使用javascript/jquery?

额外信息:

当EditTextCell处于非编辑模式时,它的内部html代码是在点击editTextCell之后,单元格从非编辑模式转换为编辑模式.我在那个单元格中创建了Input元素+ Img.

点击图片我打开了jquerys datepicker.

点击jquery datepicker上的"完成"按钮,我需要将该单元转换为非edt模式,并将新值更新为GWT celltable提供的valueUpdater.valueUpdater将新值更新为celltable.

请提供解决方案或解决此问题的任何指针.

提前致谢.

Sur*_*tta 1

在单元格渲染方法中附加“id”并

使用$('#renderedId').val("updatedValue");

PS我没试过。