Package org.opencms.widgets
Class CmsSelectWidget
java.lang.Object
org.opencms.widgets.A_CmsWidget
org.opencms.widgets.A_CmsSelectWidget
org.opencms.widgets.CmsSelectWidget
- All Implemented Interfaces:
- I_CmsADEWidget,- I_CmsWidget
- Direct Known Subclasses:
- A_CmsFormatterWidget,- CmsDependentSelectWidget,- CmsDisplayTypeSelectWidget,- CmsElementViewSelectWidget,- CmsFilterSelectWidget,- CmsSelectGroupWidget,- CmsSelectOnChangeReloadWidget,- CmsUserWidget
Provides a widget for a standard HTML form select box.
 Please see the documentation of CmsSelectWidgetOption
The select widget does use the following select options:
- CmsSelectWidgetOption.getValue()- valueof the HTML select box
- CmsSelectWidgetOption.isDefault()
- CmsSelectWidgetOption.getOption()- optionof the HTML select box
- Since:
- 6.0.0
- 
Nested Class SummaryNested classes/interfaces inherited from class org.opencms.widgets.A_CmsWidgetA_CmsWidget.CmsDummyWidgetDialog
- 
Field SummaryFields inherited from class org.opencms.widgets.A_CmsSelectWidgetCONFIGURATION_HEIGHTFields inherited from class org.opencms.widgets.A_CmsWidgetHELP_POSTFIX, LABEL_PREFIX
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new select widget.CmsSelectWidget(String configuration) Creates a select widget with the specified select options.CmsSelectWidget(List<CmsSelectWidgetOption> configuration) Creates a select widget with the select options specified in the given configuration List.
- 
Method SummaryModifier and TypeMethodDescriptiongetDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Generates the widget HTML for the provided widget parameter.Returns the class name of the widget.getWidgetStringValue(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Returns theI_CmsWidgetParameter.getStringValue(CmsObject)Creates a duplicate of this widget instance.Methods inherited from class org.opencms.widgets.A_CmsSelectWidgetaddSelectOption, getConfiguration, getConfiguration, getCssResourceLinks, getDefaultDisplayType, getHeight, getInitCall, getJavaScriptResourceLinks, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, isInternal, parseSelectOptions, setConfiguration, setSelectOptionsMethods inherited from class org.opencms.widgets.A_CmsWidgetequals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, hashCode, isCompactViewEnabled, setEditorValueMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.widgets.I_CmsWidgetgetDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, isCompactViewEnabled, setEditorValue
- 
Constructor Details- 
CmsSelectWidgetpublic CmsSelectWidget()Creates a new select widget.
- 
CmsSelectWidgetCreates a select widget with the select options specified in the given configuration List.The list elements must be of type CmsSelectWidgetOption- Parameters:
- configuration- the configuration (possible options) for the select widget
- See Also:
 
- 
CmsSelectWidgetCreates a select widget with the specified select options.- Parameters:
- configuration- the configuration (possible options) for the select box
 
 
- 
- 
Method Details- 
getDialogWidgetpublic String getDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Description copied from interface:I_CmsWidgetGenerates the widget HTML for the provided widget parameter.- Parameters:
- cms- an initialized instance of a CmsObject
- widgetDialog- the dialog where the widget is used on
- param- the widget parameter to generate the widget for
- Returns:
- the widget HTML for the provided widget parameter
- See Also:
 
- 
getWidgetNameDescription copied from interface:I_CmsADEWidgetReturns the class name of the widget.- Specified by:
- getWidgetNamein interface- I_CmsADEWidget
- Overrides:
- getWidgetNamein class- A_CmsSelectWidget
- Returns:
- the class name
- See Also:
 
- 
getWidgetStringValuepublic String getWidgetStringValue(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Description copied from interface:I_CmsWidgetReturns theI_CmsWidgetParameter.getStringValue(CmsObject)- Specified by:
- getWidgetStringValuein interface- I_CmsWidget
- Overrides:
- getWidgetStringValuein class- A_CmsWidget
- Parameters:
- cms- the current users OpenCms context
- widgetDialog- the dialog where the widget is used on
- param- the widget parameter to generate the widget for
- Returns:
- the I_CmsWidgetParameter.getStringValue(CmsObject)
- See Also:
 
- 
newInstanceDescription copied from interface:I_CmsWidgetCreates a duplicate of this widget instance.- Returns:
- a duplicate of this widget instance
- See Also:
 
 
-