code: @SuppressWarnings({"rawtypes", "unchecked"})
    public void initializeEditors(final Object editor) {
      if (editor instanceof HasValueChangeHandlers && valueChangeHandler != null) {
        ((HasValueChangeHandlers) editor).addValueChangeHandler(valueChangeHandler);
        // if widget has a value change handler, validate on change
        if (validateOnVueChangeHandler != null) {
          ((HasValueChangeHandlers) editor).addValueChangeHandler(validateOnVueChangeHandler);
        }
      }
      // if widget has a key up handler, validate on key up
      if (editor instanceof HasKeyUpHandlers && validateOnKeyUpHandler != null) {
        ((HasKeyUpHandlers) editor).addKeyUpHandler(validateOnKeyUpHandler);
      }
      // try to submit form on return
      if (editor instanceof HasKeyPressHandlers && commitOnReturnHandler != null) {
        ((HasKeyPressHandlers) editor).addKeyPressHandler(commitOnReturnHandler);
      }
    }
docs: initialize one editor.
  
  @param editor editor to initialize