/** * 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); }
@Override public boolean resetFocus(Context context, Element parent, String value) { if (isEditing(context, parent, value)) { getInputElement(parent).focus(); return true; } return false; }
/** * Convert the cell to edit mode. * * @param context the {@link Context} of the cell * @param parent the parent element * @param value the current value */ protected void edit(Context context, Element parent, String value) { setValue(context, parent, value); InputElement input = getInputElement(parent); input.focus(); input.select(); }
/** * 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); } }
/** * 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); }
@Override public boolean resetFocus(Context context, Element parent, String value) { if (isEditing(context, parent, value)) { getInputElement(parent).focus(); return true; } return false; }
/** * 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); }
@Override public boolean resetFocus(Context context, Element parent, String value) { if (isEditing(context, parent, value)) { getInputElement(parent).focus(); return true; } return false; }
/** * Convert the cell to edit mode. * * @param context the {@link Context} of the cell * @param parent the parent element * @param value the current value */ protected void edit(Context context, Element parent, String value) { setValue(context, parent, value); InputElement input = getInputElement(parent); input.focus(); input.select(); }
/** * Convert the cell to edit mode. * * @param context the {@link Context} of the cell * @param parent the parent element * @param value the current value */ protected void edit(Context context, Element parent, String value) { setValue(context, parent, value); InputElement input = getInputElement(parent); input.focus(); input.select(); }
/** * 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); } }
/** * 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); } }