/** * @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) { return getConfiguration(); }
/** * @see org.opencms.widgets.I_CmsWidget#newInstance() */ public I_CmsWidget newInstance() { return new CmsTextareaWidget(getConfiguration()); }
/** * @see org.opencms.widgets.I_CmsWidget#newInstance() */ public I_CmsWidget newInstance() { return new CmsTextareaWidget(getConfiguration()); }
/** * @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(); StringBuffer result = new StringBuffer(16); int rows = DEFAULT_ROWS_NUMBER; try { rows = new Integer(getConfiguration()).intValue(); } catch (Exception e) { // ignore } result.append("<td class=\"xmlTd\">"); result.append("<textarea class=\"xmlInput maxwidth"); if (param.hasError()) { result.append(" xmlInputError"); } result.append("\" name=\""); result.append(id); result.append("\" rows=\""); result.append(rows); result.append("\" cols=\"60\" style=\"overflow:auto;\">"); result.append(CmsEncoder.escapeXml(param.getStringValue(cms))); result.append("</textarea>"); result.append("</td>"); return result.toString(); }
/** * @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(); StringBuffer result = new StringBuffer(16); int rows = DEFAULT_ROWS_NUMBER; try { rows = new Integer(getConfiguration()).intValue(); } catch (Exception e) { // ignore } result.append("<td class=\"xmlTd\">"); result.append("<textarea class=\"xmlInput maxwidth"); if (param.hasError()) { result.append(" xmlInputError"); } result.append("\" name=\""); result.append(id); result.append("\" rows=\""); result.append(rows); result.append("\" cols=\"60\" style=\"overflow:auto;\">"); result.append(CmsEncoder.escapeXml(param.getStringValue(cms))); result.append("</textarea>"); result.append("</td>"); return result.toString(); }