/** * @see org.opencms.widgets.I_CmsWidgetParameter#getKey() */ public String getKey() { StringBuffer result = new StringBuffer(128); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_prefix)) { result.append(m_prefix); result.append('.'); } result.append(getName()); return result.toString(); }
/** * @see org.opencms.widgets.I_CmsWidgetParameter#getKey() */ public String getKey() { StringBuffer result = new StringBuffer(128); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_prefix)) { result.append(m_prefix); result.append('.'); } result.append(getName()); return result.toString(); }
/** * Returns the parameter widget definition for the given parameter name.<p> * * @param name the parameter name to get the definition for * * @return the parameter widget definition for the given parameter name */ protected CmsWidgetDialogParameter getParameterDefinition(String name) { Iterator i = getWidgets().iterator(); while (i.hasNext()) { // check for all widget parameters CmsWidgetDialogParameter base = (CmsWidgetDialogParameter)i.next(); if (base.getName().equals(name)) { return base; } } return null; }
/** * Returns the parameter widget definition for the given parameter name.<p> * * @param name the parameter name to get the definition for * * @return the parameter widget definition for the given parameter name */ protected CmsWidgetDialogParameter getParameterDefinition(String name) { Iterator<CmsWidgetDialogParameter> i = getWidgets().iterator(); while (i.hasNext()) { // check for all widget parameters CmsWidgetDialogParameter base = i.next(); if (base.getName().equals(name)) { return base; } } return null; }
null, base.m_defaultValue, base.getName(), base.getWidget(), base.getDialogPage(),
null, base.m_defaultValue, base.getName(), base.getWidget(), base.getDialogPage(),
List<CmsWidgetDialogParameter> params = m_widgetParamValues.get(base.getName()); Iterator<CmsWidgetDialogParameter> j = params.iterator(); while (j.hasNext()) {
List params = (List)m_widgetParamValues.get(base.getName()); Iterator j = params.iterator(); while (j.hasNext()) {
List sequence = (List)getParameters().get(base.getName()); if (sequence.size() > 0) {
List<CmsWidgetDialogParameter> sequence = getParameters().get(base.getName()); if (sequence.size() > 0) {
List sequence = (List)getParameters().get(base.getName()); int count = sequence.size(); result.append(keyDefault(A_CmsWidget.getLabelKey(p), p.getName())); if (count > 1) { result.append(" [").append(p.getIndex() + 1).append("]"); } else { result.append("<td><table class=\"editorbuttonbackground\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>"); result.append(buildAddElement(base.getName(), p.getIndex(), addValue)); result.append("<td><table class=\"editorbuttonbackground\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>"); result.append(buildRemoveElement(base.getName(), p.getIndex(), removeValue));
List<CmsWidgetDialogParameter> sequence = getParameters().get(base.getName()); int count = sequence.size(); result.append(keyDefault(A_CmsWidget.getLabelKey(p), p.getName())); if (count > 1) { result.append(" [").append(p.getIndex() + 1).append("]"); result.append( "<td><table class=\"editorbuttonbackground\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>"); result.append(buildAddElement(base.getName(), p.getIndex(), addValue)); "<td><table class=\"editorbuttonbackground\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>"); result.append(buildRemoveElement(base.getName(), p.getIndex(), removeValue));
/** * 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; }