|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.widgets.A_CmsWidget
org.opencms.widgets.A_CmsSelectWidget
org.opencms.widgets.CmsComboWidget
public class CmsComboWidget
Provides a HTML text input field with optional values to select in a combo box, for use on a widget dialog.
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
Field Summary |
---|
Fields inherited from class org.opencms.widgets.A_CmsWidget |
---|
HELP_POSTFIX, LABEL_PREFIX |
Constructor Summary | |
---|---|
CmsComboWidget()
Creates a new combo widget. |
|
CmsComboWidget(java.util.List 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. |
Method Summary | |
---|---|
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. |
I_CmsWidget |
newInstance()
Creates a duplicate of this widget instance. |
Methods inherited from class org.opencms.widgets.A_CmsSelectWidget |
---|
addSelectOption, getConfiguration, getSelectedValue, getSelectedValues, getSelectOptions, parseSelectOptions, setSelectOptions |
Methods inherited from class org.opencms.widgets.A_CmsWidget |
---|
equals, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, setConfiguration, setEditorValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsComboWidget()
public CmsComboWidget(java.util.List 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 boxMethod Detail |
---|
public 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
in interface I_CmsWidget
getDialogHtmlEnd
in class A_CmsWidget
cms
- the current users OpenCms contextwidgetDialog
- the dialog where the widget is used onparam
- the widget parameter to generate the widget for
A_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
in interface I_CmsWidget
getDialogIncludes
in class A_CmsWidget
cms
- the current users OpenCms contextwidgetDialog
- the dialog where the widget is used on
I_CmsWidget.getDialogIncludes(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)
public java.lang.String getDialogInitCall(CmsObject cms, I_CmsWidgetDialog widgetDialog)
I_CmsWidget
getDialogInitCall
in interface I_CmsWidget
getDialogInitCall
in class A_CmsWidget
cms
- the current users OpenCms contextwidgetDialog
- the dialog where the widget is used on
I_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 for
I_CmsWidget.getDialogWidget(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
public I_CmsWidget newInstance()
I_CmsWidget
I_CmsWidget.newInstance()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |