/** * @see org.opencms.widgets.I_CmsADEWidget#getConfiguration(org.opencms.file.CmsObject, org.opencms.xml.types.A_CmsXmlContentValue, org.opencms.i18n.CmsMessages, org.opencms.file.CmsResource, java.util.Locale) */ public String getConfiguration( CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) { initConfiguration(cms, schemaType); return m_messages.key(m_bundleKey); }
/** * @see org.opencms.widgets.I_CmsWidget#getDialogWidget(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter) */ public String getDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) { String id = param.getId(); // initialize bundle initConfiguration(cms, param); StringBuffer result = new StringBuffer(256); result.append("<td class=\"xmlTd\">"); result.append("<input class=\"xmlInput textInput"); if (param.hasError()) { result.append(" xmlInputError"); } result.append("\""); result.append(" name=\""); result.append(id); result.append("\" id=\""); result.append(id); result.append("\" value=\""); // determine value to show in editor String value = getValue(cms, param); result.append(CmsEncoder.escapeXml(value)); result.append("\">"); result.append("</td>"); return result.toString(); }
if ((values != null) && (values.length > 0)) { initConfiguration(cms, param); String value = m_messages.key(m_bundleKey); if (value.equals(values[0].trim())) {
if ((values != null) && (values.length > 0)) { initConfiguration(cms, param); String value = m_messages.key(m_bundleKey); if (value.equals(values[0].trim())) {
initConfiguration(cms, param);