public class CmsRadioSelectWidget extends A_CmsSelectWidget
Please see the documentation of
for a description
about the configuration String syntax for the select options.CmsSelectWidgetOption
The multi select widget does use the following select options:
CmsSelectWidgetOption.getValue()
for the value of the option
CmsSelectWidgetOption.isDefault()
for pre-selecting a specific value
CmsSelectWidgetOption.getOption()
for the display name of the option
A_CmsWidget.CmsDummyWidgetDialog
CONFIGURATION_HEIGHT
HELP_POSTFIX, LABEL_PREFIX
Constructor and Description |
---|
CmsRadioSelectWidget()
Creates a new select widget.
|
CmsRadioSelectWidget(java.util.List<CmsSelectWidgetOption> configuration)
Creates a select widget with the select options specified in the given configuration List.
|
CmsRadioSelectWidget(java.lang.String configuration)
Creates a select widget with the specified select options.
|
Modifier and Type | Method and Description |
---|---|
I_CmsXmlContentHandler.DisplayType |
getDefaultDisplayType()
Returns the default display type of this widget.
|
java.lang.String |
getDialogWidget(CmsObject cms,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
Generates the widget HTML for the provided widget parameter.
|
java.lang.String |
getWidgetName()
Returns the class name of the widget.
|
I_CmsWidget |
newInstance()
Creates a duplicate of this widget instance.
|
addSelectOption, getConfiguration, getConfiguration, getCssResourceLinks, getHeight, getInitCall, getJavaScriptResourceLinks, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, isInternal, parseSelectOptions, setConfiguration, setSelectOptions
equals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, isCompactViewEnabled, setEditorValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, getWidgetStringValue, isCompactViewEnabled, setEditorValue
public CmsRadioSelectWidget()
public CmsRadioSelectWidget(java.util.List<CmsSelectWidgetOption> configuration)
The list elements must be of type
.CmsSelectWidgetOption
configuration
- the configuration (possible options) for the select widgetCmsSelectWidgetOption
public CmsRadioSelectWidget(java.lang.String configuration)
configuration
- the configuration (possible options) for the select boxpublic I_CmsXmlContentHandler.DisplayType getDefaultDisplayType()
I_CmsADEWidget
getDefaultDisplayType
in interface I_CmsADEWidget
getDefaultDisplayType
in class A_CmsSelectWidget
I_CmsADEWidget.getDefaultDisplayType()
public java.lang.String getDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
I_CmsWidget
cms
- an initialized instance of a CmsObjectwidgetDialog
- the dialog where the widget is used onparam
- the widget parameter to generate the widget forI_CmsWidget.getDialogWidget(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
public java.lang.String getWidgetName()
I_CmsADEWidget
getWidgetName
in interface I_CmsADEWidget
getWidgetName
in class A_CmsSelectWidget
I_CmsADEWidget.getWidgetName()
public I_CmsWidget newInstance()
I_CmsWidget
I_CmsWidget.newInstance()