docs: private void createButtons() {
  
          addDialogClose(new Command() {
  
              public void execute() {
  
                  cancelUpload();
              }
          });
  
          CmsPushButton cancelButton = new CmsPushButton();
          cancelButton.setTitle(org.opencms.gwt.client.Messages.get().key(org.opencms.gwt.client.Messages.GUI_CANCEL_0));
          cancelButton.setText(org.opencms.gwt.client.Messages.get().key(org.opencms.gwt.client.Messages.GUI_CANCEL_0));
          cancelButton.setSize(I_CmsButton.Size.medium);
          cancelButton.setUseMinWidth(true);
          cancelButton.addClickHandler(new ClickHandler() {
  
              /**
               * @see com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event.dom.client.ClickEvent)
               */
              public void onClick(ClickEvent event) {
  
                  cancelUpload();
              }
          });
          addButton(cancelButton);
  
          m_okButton = new CmsPushButton();
          m_okButton.setTitle(org.opencms.gwt.client.Messages.get().key(org.opencms.gwt.client.Messages.GUI_OK_0));
          m_okButton.setText(org.opencms.gwt.client.Messages.get().key(org.opencms.gwt.client.Messages.GUI_OK_0));
          m_okButton.setSize(I_CmsButton.Size.medium);
          m_okButton.setUseMinWidth(true);
          m_okButton.addClickHandler(new ClickHandler() {
  
              /**
               * @see com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event.dom.client.ClickEvent)
               */
              public void onClick(ClickEvent event) {
  
                  onOkClick();
              }
          });
          addButton(m_okButton);
  
          CmsDialogUploadButtonHandler buttonHandler = new CmsDialogUploadButtonHandler(
              new Supplier<I_CmsUploadContext>() {
  
                  public I_CmsUploadContext get() {
  
                      return m_context;
                  }
              });
          buttonHandler.setUploadDialog(this);
          // add a new upload button
          CmsUploadButton uploadButton = new CmsUploadButton(buttonHandler);
          uploadButton.addStyleName(I_CmsLayoutBundle.INSTANCE.uploadCss().uploadDialogButton());
          uploadButton.setText(Messages.get().key(Messages.GUI_UPLOAD_BUTTON_ADD_FILES_0));
          addButton(uploadButton);
          m_uploadButton = uploadButton;
      }