How to call GWT'-CellTable-CustomEditTextCells api, like Commit () & Cancel () from javascript / jquery?

I am using GWT2.3 celltable

How to call GWT'-CellTable-CustomEditTextCells api like Commit () and Cancel () froml using javascript / jquery?

Following is cancel () EdittextCell-GWT

Any alternative for this in 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);
    }
  }

Following is cancel () EdittextCell-GWT

Any alternative for this in 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);
  }

Using javascript I want to update a new value for a selected cell and hide it in non-editable mode. How to do this using javascript / jquery?

Additional Information:

When EditTextCell is in non-editing mode this time with the internal html code after clicking on editTextCell, the cell is hidden from non-editing mode in editing mode. I created an Input + Img element in this cell.

jquerys datepicker.

"", jquery datepicker, -edt-, valueUpdater, GWT. valueUpdater .

, .

.

+5
2

$('#renderedId').val("updatedValue").blur();?

+2

​​ 'id'

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

P.S .

+1

All Articles