/** * @see org.opencms.widgets.I_CmsWidget#newInstance() */ public I_CmsWidget newInstance() { return new CmsPrincipalWidget(getConfiguration()); }
new CmsPrincipalWidget().getButtonJs(PARAM_NAME, "add"), null, "principal",
/** * @see org.opencms.workplace.CmsDialog#htmlStart() */ @Override public String htmlStart() { StringBuffer result = new StringBuffer(256); result.append(super.htmlStart()); result.append((new CmsPrincipalWidget().getDialogIncludes(getCms(), null))); result.append("<script type='text/javascript' >"); result.append("typeField = '").append(PARAM_TYPE).append("';"); result.append("</script>"); return result.toString(); }
getButtonJs(id, "EDITOR"), null, "principal",
/** * @see org.opencms.widgets.I_CmsWidget#getDialogIncludes(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog) */ @Override public String getDialogIncludes(CmsObject cms, I_CmsWidgetDialog widgetDialog) { StringBuffer result = new StringBuffer(16); result.append(getJSIncludeFile(CmsWorkplace.getSkinUri() + "components/widgets/principalselector.js")); return result.toString(); }
/** * @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(); }
new CmsPrincipalWidget().getButtonJs(PARAM_NAME, "add"), null, "principal",
/** * @see org.opencms.workplace.CmsDialog#htmlStart() */ @Override public String htmlStart() { StringBuffer result = new StringBuffer(256); result.append(super.htmlStart()); result.append((new CmsPrincipalWidget().getDialogIncludes(getCms(), null))); result.append("<script type='text/javascript' >"); result.append("typeField = '").append(PARAM_TYPE).append("';"); result.append("</script>"); return result.toString(); }
getButtonJs(id, "EDITOR"), null, "principal",
/** * @see org.opencms.widgets.I_CmsWidget#getDialogIncludes(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog) */ @Override public String getDialogIncludes(CmsObject cms, I_CmsWidgetDialog widgetDialog) { StringBuffer result = new StringBuffer(16); result.append(getJSIncludeFile(CmsWorkplace.getSkinUri() + "components/widgets/principalselector.js")); return result.toString(); }
/** * @see org.opencms.widgets.I_CmsWidget#newInstance() */ public I_CmsWidget newInstance() { return new CmsPrincipalWidget(getConfiguration()); }