Package org.opencms.widgets
Class CmsDependentSelectWidget
java.lang.Object
org.opencms.widgets.A_CmsWidget
org.opencms.widgets.A_CmsSelectWidget
org.opencms.widgets.CmsSelectWidget
org.opencms.widgets.CmsDependentSelectWidget
- All Implemented Interfaces:
I_CmsADEWidget,I_CmsWidget
Server-side part of the dependent select box widget.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.widgets.A_CmsWidget
A_CmsWidget.CmsDummyWidgetDialog -
Field Summary
Fields inherited from class org.opencms.widgets.A_CmsSelectWidget
CONFIGURATION_HEIGHTFields inherited from class org.opencms.widgets.A_CmsWidget
HELP_POSTFIX, LABEL_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Returns the configuration string for the ADE content editor widget.Returns the class name of the widget.Creates a duplicate of this widget instance.Methods inherited from class org.opencms.widgets.CmsSelectWidget
getDialogWidget, getWidgetStringValueMethods inherited from class org.opencms.widgets.A_CmsSelectWidget
addSelectOption, getConfiguration, getCssResourceLinks, getDefaultDisplayType, getHeight, getInitCall, getJavaScriptResourceLinks, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, isInternal, parseSelectOptions, setConfiguration, setSelectOptionsMethods inherited from class org.opencms.widgets.A_CmsWidget
equals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, hashCode, isCompactViewEnabled, setEditorValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.widgets.I_CmsWidget
getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, isCompactViewEnabled, setEditorValue
-
Constructor Details
-
CmsDependentSelectWidget
public CmsDependentSelectWidget()
-
-
Method Details
-
getConfiguration
public String getConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Description copied from interface:I_CmsADEWidgetReturns the configuration string for the ADE content editor widget.- Specified by:
getConfigurationin interfaceI_CmsADEWidget- Overrides:
getConfigurationin classA_CmsSelectWidget- Parameters:
cms- the OpenCms contextschemaType- the schema typemessages- the messagesresource- the edited resourcecontentLocale- the content locale- Returns:
- the configuration string
- See Also:
-
getWidgetName
Description copied from interface:I_CmsADEWidgetReturns the class name of the widget.- Specified by:
getWidgetNamein interfaceI_CmsADEWidget- Overrides:
getWidgetNamein classCmsSelectWidget- Returns:
- the class name
- See Also:
-
newInstance
Description copied from interface:I_CmsWidgetCreates a duplicate of this widget instance.- Specified by:
newInstancein interfaceI_CmsWidget- Overrides:
newInstancein classCmsSelectWidget- Returns:
- a duplicate of this widget instance
- See Also:
-