Package org.opencms.widgets
Class CmsSelectOnChangeReloadWidget
java.lang.Object
org.opencms.widgets.A_CmsWidget
org.opencms.widgets.A_CmsSelectWidget
org.opencms.widgets.CmsSelectWidget
org.opencms.widgets.CmsSelectOnChangeReloadWidget
- All Implemented Interfaces:
I_CmsADEWidget,I_CmsWidget
Provides a widget for a standard HTML form select box with. The jsp where this widget is used is
reloaded, when the select box value is changed.
Please see the documentation of for a description
about the configuration String syntax for the select options.CmsSelectWidgetOption
The select widget does use the following select options:
for theCmsSelectWidgetOption.getValue()valueof the HTML select boxfor pre-selecting a specific valueCmsSelectWidgetOption.isDefault()for theCmsSelectWidgetOption.getOption()optionof the HTML select box
- Since:
- 7.5.3
-
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
ConstructorsConstructorDescriptionCreates a new select widget.CmsSelectOnChangeReloadWidget(String configuration) Creates a select widget with the specified select options.CmsSelectOnChangeReloadWidget(List<CmsSelectWidgetOption> configuration) Creates a select widget with the select options specified in the given configuration List. -
Method Summary
Modifier and TypeMethodDescriptiongetDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Generates the widget HTML for the provided widget parameter.Methods inherited from class org.opencms.widgets.CmsSelectWidget
getWidgetName, getWidgetStringValue, newInstanceMethods inherited from class org.opencms.widgets.A_CmsSelectWidget
addSelectOption, getConfiguration, 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
-
CmsSelectOnChangeReloadWidget
public CmsSelectOnChangeReloadWidget()Creates a new select widget. -
CmsSelectOnChangeReloadWidget
Creates 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:
-
CmsSelectOnChangeReloadWidget
Creates a select widget with the specified select options.- Parameters:
configuration- the configuration (possible options) for the select box
-
-
Method Details
-
getDialogWidget
public String getDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) Description copied from interface:I_CmsWidgetGenerates the widget HTML for the provided widget parameter.- Specified by:
getDialogWidgetin interfaceI_CmsWidget- Overrides:
getDialogWidgetin classCmsSelectWidget- Parameters:
cms- an initialized instance of a CmsObjectwidgetDialog- the dialog where the widget is used onparam- the widget parameter to generate the widget for- Returns:
- the widget HTML for the provided widget parameter
- See Also:
-