if ((dialogPage == null) || (base.getDialogPage() == null) || dialogPage.equals(base.getDialogPage())) {
if ((dialogPage == null) || (base.getDialogPage() == null) || dialogPage.equals(base.getDialogPage())) {
/** * 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(); }
base.getName(), base.getWidget(), base.getDialogPage(), base.getMinOccurs(), base.getMaxOccurs(),
/** * 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(); }
base.getName(), base.getWidget(), base.getDialogPage(), base.getMinOccurs(), base.getMaxOccurs(),
String value = param.getStringValue(getCms()); if (CmsStringUtil.isNotEmpty(value) && ((excludeDialogPage == null) || (!param.getDialogPage().equals(excludeDialogPage)))) { result.append("<input type=\"hidden\" name=\""); result.append(HIDDEN_PARAM_PREFIX);
String value = param.getStringValue(getCms()); if (CmsStringUtil.isNotEmpty(value) && ((excludeDialogPage == null) || (!param.getDialogPage().equals(excludeDialogPage)))) { result.append("<input type=\"hidden\" name=\""); result.append(HIDDEN_PARAM_PREFIX);
|| CmsStringUtil.isEmpty(base.getDialogPage()) || base.getDialogPage().equals(page);
|| CmsStringUtil.isEmpty(base.getDialogPage()) || base.getDialogPage().equals(page);
/** * Create a new Widget parameter.<p> * * @param base the base of the parameter * @param index the index of this parameter in the list */ public CmsWidgetDialogParameter(CmsWidgetDialogParameter base, int index) { this( null, base.m_defaultValue, base.getName(), base.getWidget(), base.getDialogPage(), base.getMinOccurs(), base.getMaxOccurs(), index); m_baseObject = base.m_baseObject; m_baseObjectProperty = base.m_baseObjectProperty; m_baseCollection = base.m_baseCollection; m_prefix = base.m_prefix; }
/** * Create a new Widget parameter.<p> * * @param base the base of the parameter * @param index the index of this parameter in the list */ public CmsWidgetDialogParameter(CmsWidgetDialogParameter base, int index) { this( null, base.m_defaultValue, base.getName(), base.getWidget(), base.getDialogPage(), base.getMinOccurs(), base.getMaxOccurs(), index); m_baseObject = base.m_baseObject; m_baseObjectProperty = base.m_baseObjectProperty; m_baseCollection = base.m_baseCollection; m_prefix = base.m_prefix; }
|| CmsStringUtil.isEmpty(base.getDialogPage()) || base.getDialogPage().equals(page);
|| CmsStringUtil.isEmpty(base.getDialogPage()) || base.getDialogPage().equals(page);