public class CmsDependentSelectWidget extends CmsSelectWidget
Select widget which uses other values from the content as select options.
This works as follows: The widget is given a configuration consisting of three pipe-separated OpenCms content value paths. The first path is used to select a set of nested content values. The second and third paths are relative to the first path and are used to select a select option and a select option display text from the nested contents matching the first path. Note that if you omit indexes on a component of the first path, all indexes will be matched.
A_CmsWidget.CmsDummyWidgetDialogCONFIGURATION_HEIGHTHELP_POSTFIX, LABEL_PREFIX| Constructor and Description |
|---|
CmsDependentSelectWidget() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConfiguration(CmsObject cms,
A_CmsXmlContentValue schemaType,
CmsMessages messages,
CmsResource resource,
java.util.Locale contentLocale)
Returns the configuration string for the ADE content editor widget.
|
java.lang.String |
getWidgetName()
Returns the class name of the widget.
|
I_CmsWidget |
newInstance()
Creates a duplicate of this widget instance.
|
getDialogWidget, getWidgetStringValueaddSelectOption, getConfiguration, getCssResourceLinks, getDefaultDisplayType, getHeight, getInitCall, getJavaScriptResourceLinks, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, isInternal, parseSelectOptions, setConfiguration, setSelectOptionsequals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, hashCode, isCompactViewEnabled, setEditorValueclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, isCompactViewEnabled, setEditorValuepublic CmsDependentSelectWidget()
public java.lang.String getConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)
I_CmsADEWidgetgetConfiguration in interface I_CmsADEWidgetgetConfiguration in class A_CmsSelectWidgetcms - the OpenCms contextschemaType - the schema typemessages - the messagesresource - the edited resourcecontentLocale - the content localeA_CmsSelectWidget.getConfiguration(org.opencms.file.CmsObject, org.opencms.xml.types.A_CmsXmlContentValue, org.opencms.i18n.CmsMessages, org.opencms.file.CmsResource, java.util.Locale)public java.lang.String getWidgetName()
I_CmsADEWidgetgetWidgetName in interface I_CmsADEWidgetgetWidgetName in class CmsSelectWidgetCmsSelectWidget.getWidgetName()public I_CmsWidget newInstance()
I_CmsWidgetnewInstance in interface I_CmsWidgetnewInstance in class CmsSelectWidgetCmsSelectWidget.newInstance()