code: @UiHandler("m_okButton")
      protected void onClickOk(ClickEvent e) {
  
          changeState(State.validationRunning);
          final String newName = getValue();
          CmsRpcAction<String> validate = new CmsRpcAction<String>() {
  
              @Override
              public void execute() {
  
                  start(200, false);
                  CmsCoreProvider.getVfsService().renameResource(m_structureId, newName, this);
              }
  
              @Override
              public void onFailure(Throwable t) {
  
                  super.onFailure(t);
                  changeState(State.validationUnknown);
              }
  
              @Override
              protected void onResponse(String result) {
  
                  stop(false);
                  if (result == null) {
                      close();
                      if (m_renameCallback != null) {
                          m_renameCallback.onSuccess(newName);
                      }
                  } else {
                      changeState(State.validationFailed);
                      setValidationError(result);
                  }
              }
  
          };
          validate.execute();
  
      }
docs: Event handler for the OK button.<p>
  
  @param e the click event