code: public void setEditMode(final EditMode mode) {
  
          if (!m_modeSelect.getValue().equals(mode)) {
              m_modeSelect.setValue(mode);
          }
      }
docs: Set the edit mode.
  @param mode the edit mode to set.