public class CmsComboWidget extends A_CmsSelectWidget
Please see the documentation of for a description
about the configuration String syntax for the select options.CmsSelectWidgetOption
The combo widget does use the following select options:
CmsSelectWidgetOption.getValue() for the texts to be displayed in the combo selector
CmsSelectWidgetOption.isDefault() to fill the input with a preselected text
CmsSelectWidgetOption.getHelp() to display an (optional) help text for the combo option
A_CmsWidget.CmsDummyWidgetDialogCONFIGURATION_HEIGHTHELP_POSTFIX, LABEL_PREFIX| 构造器和说明 |
|---|
CmsComboWidget()
Creates a new combo widget.
|
CmsComboWidget(java.util.List<CmsSelectWidgetOption> configuration)
Creates a combo widget with the select options specified in the given configuration List.
|
CmsComboWidget(java.lang.String configuration)
Creates a combo widget with the specified combo options.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getDialogHtmlEnd(CmsObject cms,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
Generates the html to include at the end of the dialog for this widget.
|
java.lang.String |
getDialogIncludes(CmsObject cms,
I_CmsWidgetDialog widgetDialog)
Generates the necessary JavaScript inclusion code for this widget.
|
java.lang.String |
getDialogInitCall(CmsObject cms,
I_CmsWidgetDialog widgetDialog)
Generates the initialisation method JavaScript code for 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, getDefaultDisplayType, getHeight, getInitCall, getJavaScriptResourceLinks, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, isInternal, parseSelectOptions, setConfiguration, setSelectOptionsequals, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, isCompactViewEnabled, setEditorValuegetDialogInitMethod, getHelpBubble, getHelpText, getWidgetStringValue, isCompactViewEnabled, setEditorValuepublic CmsComboWidget()
public CmsComboWidget(java.util.List<CmsSelectWidgetOption> configuration)
The list elements must be of type .CmsSelectWidgetOption
configuration - the configuration (possible options) for the select widgetCmsSelectWidgetOptionpublic CmsComboWidget(java.lang.String configuration)
configuration - the configuration (possible options) for the combo boxpublic java.lang.String getDialogHtmlEnd(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
I_CmsWidgetThe "help bubble" text div's are added using this method.
getDialogHtmlEnd 在接口中 I_CmsWidgetgetDialogHtmlEnd 在类中 A_CmsWidgetcms - the current users OpenCms contextwidgetDialog - the dialog where the widget is used onparam - the widget parameter to generate the widget forA_CmsWidget.getDialogHtmlEnd(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)public java.lang.String getDialogIncludes(CmsObject cms, I_CmsWidgetDialog widgetDialog)
I_CmsWidgetgetDialogIncludes 在接口中 I_CmsWidgetgetDialogIncludes 在类中 A_CmsWidgetcms - the current users OpenCms contextwidgetDialog - the dialog where the widget is used onI_CmsWidget.getDialogIncludes(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)public java.lang.String getDialogInitCall(CmsObject cms, I_CmsWidgetDialog widgetDialog)
I_CmsWidgetgetDialogInitCall 在接口中 I_CmsWidgetgetDialogInitCall 在类中 A_CmsWidgetcms - the current users OpenCms contextwidgetDialog - the dialog where the widget is used onI_CmsWidget.getDialogInitCall(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)public java.lang.String getDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
I_CmsWidgetcms - 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_CmsADEWidgetgetWidgetName 在接口中 I_CmsADEWidgetgetWidgetName 在类中 A_CmsSelectWidgetA_CmsSelectWidget.getWidgetName()public I_CmsWidget newInstance()
I_CmsWidgetI_CmsWidget.newInstance()