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.CmsDummyWidgetDialog
CONFIGURATION_HEIGHT
HELP_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, setSelectOptions
equals, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, isCompactViewEnabled, setEditorValue
getDialogInitMethod, getHelpBubble, getHelpText, getWidgetStringValue, isCompactViewEnabled, setEditorValue
public CmsComboWidget()
public CmsComboWidget(java.util.List<CmsSelectWidgetOption> configuration)
The list elements must be of type
.CmsSelectWidgetOption
configuration
- the configuration (possible options) for the select widgetCmsSelectWidgetOption
public 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_CmsWidget
The "help bubble" text div's are added using this method.
getDialogHtmlEnd
在接口中 I_CmsWidget
getDialogHtmlEnd
在类中 A_CmsWidget
cms
- 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_CmsWidget
getDialogIncludes
在接口中 I_CmsWidget
getDialogIncludes
在类中 A_CmsWidget
cms
- 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_CmsWidget
getDialogInitCall
在接口中 I_CmsWidget
getDialogInitCall
在类中 A_CmsWidget
cms
- 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_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
A_CmsSelectWidget.getWidgetName()
public I_CmsWidget newInstance()
I_CmsWidget
I_CmsWidget.newInstance()