/** * Creates the complete widget dialog end block HTML that finishes a widget block.<p> * * @return the complete widget dialog end block HTML that finishes a widget block */ protected String createWidgetBlockEnd() { StringBuffer result = new StringBuffer(8); result.append(createWidgetTableEnd()); result.append(dialogBlockEnd()); return result.toString(); }
/** * Creates the complete widget dialog end block HTML that finishes a widget block.<p> * * @return the complete widget dialog end block HTML that finishes a widget block */ protected String createWidgetBlockEnd() { StringBuffer result = new StringBuffer(8); result.append(createWidgetTableEnd()); result.append(dialogBlockEnd()); return result.toString(); }
/** * Creates the dialog HTML for all defined widgets of the named dialog (page).<p> * * To get a more complex layout variation, you have to overwrite this method in your dialog class.<p> * * @param dialog the dialog (page) to get the HTML for * @return the dialog HTML for all defined widgets of the named dialog (page) */ protected String createDialogHtml(String dialog) { StringBuffer result = new StringBuffer(1024); // create table result.append(createWidgetTableStart()); // show error header once if there were validation errors result.append(createWidgetErrorHeader()); Iterator<CmsWidgetDialogParameter> i = getWidgets().iterator(); // iterate the type sequence while (i.hasNext()) { // get the current widget base definition CmsWidgetDialogParameter base = i.next(); // check if the element is on the requested dialog page if ((dialog == null) || dialog.equals(base.getDialogPage())) { // add the HTML for the dialog element result.append(createDialogRowHtml(base)); } } // close table result.append(createWidgetTableEnd()); return result.toString(); }
/** * Creates the dialog HTML for all defined widgets of the named dialog (page).<p> * * To get a more complex layout variation, you have to overwrite this method in your dialog class.<p> * * @param dialog the dialog (page) to get the HTML for * @return the dialog HTML for all defined widgets of the named dialog (page) */ protected String createDialogHtml(String dialog) { StringBuffer result = new StringBuffer(1024); // create table result.append(createWidgetTableStart()); // show error header once if there were validation errors result.append(createWidgetErrorHeader()); Iterator i = getWidgets().iterator(); // iterate the type sequence while (i.hasNext()) { // get the current widget base definition CmsWidgetDialogParameter base = (CmsWidgetDialogParameter)i.next(); // check if the element is on the requested dialog page if ((dialog == null) || dialog.equals(base.getDialogPage())) { // add the HTML for the dialog element result.append(createDialogRowHtml(base)); } } // close table result.append(createWidgetTableEnd()); return result.toString(); }
result.append(createWidgetTableEnd()); result.append(dialogBlockEnd()); result.append(createWidgetTableEnd()); result.append(dialogBlockEnd());
result.append(createWidgetTableEnd()); result.append(dialogBlockEnd()); result.append(createWidgetTableEnd()); result.append(dialogBlockEnd());