docs: @Override
      protected String createDialogHtml(String dialog) {
  
          StringBuffer result = new StringBuffer(512);
  
          result.append(createWidgetTableStart());
          // show error header once if there were validation errors
          result.append(createWidgetErrorHeader());
  
          if (dialog.equals(PAGES[0])) {
              // create the widgets for the first dialog page
              result.append(dialogBlockStart(key(Messages.GUI_LIST_SEARCHINDEX_ACTION_REBUILD_NAME_0)));
              result.append(createWidgetTableStart());
              result.append(key(
                  Messages.GUI_LIST_SEARCHINDEX_ACTION_REBUILD_NAME_CONF_1,
                  new Object[] {getSearchIndexIndex().getName()}));
              result.append(createWidgetTableEnd());
              result.append(dialogBlockEnd());
          }
  
          result.append(createWidgetTableEnd());
  
          // See CmsWidgetDialog.dialogButtonsCustom(): if no widgets are defined that are non-display-only widgets,
          // no dialog buttons (Ok, Cancel) will be visible....
          result.append(dialogButtons(new int[] {BUTTON_OK, BUTTON_CANCEL}, new String[2]));
          return result.toString();
      }