|
||||||||
| 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(List<CmsSelectWidgetOption> configuration)
Creates a combo widget with the select options specified in the given configuration List. |
|
CmsComboWidget(String configuration)
Creates a combo widget with the specified combo options. |
|
| Method Summary | |
|---|---|
String |
getDialogHtmlEnd(CmsObject cms,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
Generates the html to include at the end of the dialog for this widget. |
String |
getDialogIncludes(CmsObject cms,
I_CmsWidgetDialog widgetDialog)
Generates the necessary JavaScript inclusion code for this widget. |
String |
getDialogInitCall(CmsObject cms,
I_CmsWidgetDialog widgetDialog)
Generates the initialisation method JavaScript code for this widget. |
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(List<CmsSelectWidgetOption> configuration)
The list elements must be of type .CmsSelectWidgetOption
configuration - the configuration (possible options) for the select widgetCmsSelectWidgetOptionpublic CmsComboWidget(String configuration)
configuration - the configuration (possible options) for the combo box| Method Detail |
|---|
public String getDialogHtmlEnd(CmsObject cms,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
I_CmsWidgetThe "help bubble" text div's are added using this method.
getDialogHtmlEnd in interface I_CmsWidgetgetDialogHtmlEnd in class A_CmsWidgetcms - 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 String getDialogIncludes(CmsObject cms,
I_CmsWidgetDialog widgetDialog)
I_CmsWidget
getDialogIncludes in interface I_CmsWidgetgetDialogIncludes in class A_CmsWidgetcms - 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 String getDialogInitCall(CmsObject cms,
I_CmsWidgetDialog widgetDialog)
I_CmsWidget
getDialogInitCall in interface I_CmsWidgetgetDialogInitCall in class A_CmsWidgetcms - 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 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 | |||||||