super.encodeCellContents(context, writer, component, rowIndex, colIndex);
if (rowIndex == components.length - 1) {
writer.startElement("div", component);
writer.writeAttribute("class", "o_eventEditor_buttonsArea", null);
HtmlCommandButton deleteButton = Components.createButtonFacet(context, dialog, "deleteButton", dialog.getDeleteButtonText());
deleteButton.setStyle(Styles.mergeStyles("float: left", dialog.getDeleteButtonStyle()));
deleteButton.setStyleClass(dialog.getDeleteButtonClass());
deleteButton.encodeAll(context);
HtmlCommandButton okButton = Components.createButtonFacet(context, dialog, "okButton", dialog.getOkButtonText());
okButton.setStyle(dialog.getOkButtonStyle());
okButton.setStyleClass(dialog.getOkButtonClass());
okButton.encodeAll(context);
HtmlCommandButton cancelButton = Components.createButtonFacet(context, dialog, "cancelButton", dialog.getCancelButtonText());
writer.write(HTML.NBSP_ENTITY);
cancelButton.setStyle(dialog.getCancelButtonStyle());
cancelButton.setStyleClass(dialog.getCancelButtonClass());
cancelButton.encodeAll(context);
writer.endElement("div");
Rendering.renderInitScript(context, new ScriptBuilder().functionCall("O$.Timetable._initEventEditorDialog",
timetableView,
dialog,