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
构造器和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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
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
在接口中 I_CmsADEWidget
getDefaultDisplayType
在类中 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
在接口中 I_CmsADEWidget
getWidgetName
在类中 A_CmsSelectWidget
I_CmsADEWidget.getWidgetName()
public I_CmsWidget newInstance()
I_CmsWidget
I_CmsWidget.newInstance()