/** * Returns the start or end HTML for the OpenCms specific button row.<p> * * Use this method to generate the start and end html for the button row.<p> * * Overwrite the method if the integrated editor needs a specific layout for the button row start or end html.<p> * * @param segment the HTML segment (START / END) * @param widgetDialog the dialog where the widget is used on * @return the html String for the OpenCms specific button row */ protected String buildOpenCmsButtonRow(int segment, I_CmsWidgetDialog widgetDialog) { StringBuffer result = new StringBuffer(256); if (segment == CmsWorkplace.HTML_START) { // generate line and start row HTML result.append(widgetDialog.buttonBarHorizontalLine()); result.append(widgetDialog.buttonBar(CmsWorkplace.HTML_START)); result.append(widgetDialog.buttonBarStartTab(0, 0)); } else { // close button row and generate end line result.append(widgetDialog.buttonBar(CmsWorkplace.HTML_END)); result.append(widgetDialog.buttonBarHorizontalLine()); } return result.toString(); } }
/** * Returns the start or end HTML for the OpenCms specific button row.<p> * * Use this method to generate the start and end html for the button row.<p> * * Overwrite the method if the integrated editor needs a specific layout for the button row start or end html.<p> * * @param segment the HTML segment (START / END) * @param widgetDialog the dialog where the widget is used on * @return the html String for the OpenCms specific button row */ protected String buildOpenCmsButtonRow(int segment, I_CmsWidgetDialog widgetDialog) { StringBuffer result = new StringBuffer(256); if (segment == CmsWorkplace.HTML_START) { // generate line and start row HTML result.append(widgetDialog.buttonBarHorizontalLine()); result.append(widgetDialog.buttonBar(CmsWorkplace.HTML_START)); result.append(widgetDialog.buttonBarStartTab(0, 0)); } else { // close button row and generate end line result.append(widgetDialog.buttonBar(CmsWorkplace.HTML_END)); result.append(widgetDialog.buttonBarHorizontalLine()); } return result.toString(); } }