public class CmsDisplayTypeSelectWidget extends CmsSelectWidget
A_CmsWidget.CmsDummyWidgetDialog| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MATCH_TYPES_KEY
The match display types key.
|
CONFIGURATION_HEIGHTHELP_POSTFIX, LABEL_PREFIX| Constructor and Description |
|---|
CmsDisplayTypeSelectWidget() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConfiguration()
Returns the configuration string.
|
java.lang.String |
getConfiguration(CmsObject cms,
A_CmsXmlContentValue schemaType,
CmsMessages messages,
CmsResource resource,
java.util.Locale contentLocale)
Returns the configuration string for the ADE content editor widget.
|
java.lang.String |
getWidgetName()
Returns the class name of the widget.
|
I_CmsWidget |
newInstance()
Creates a duplicate of this widget instance.
|
protected java.util.List<CmsSelectWidgetOption> |
parseSelectOptions(CmsObject cms,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
Returns the list of configured select options, parsing the configuration String if required.
|
void |
setConfiguration(java.lang.String configuration)
Sets the configuration of this widget.
|
getDialogWidget, getWidgetStringValueaddSelectOption, getCssResourceLinks, getDefaultDisplayType, getHeight, getInitCall, getJavaScriptResourceLinks, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, isInternal, setSelectOptionsequals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, hashCode, isCompactViewEnabled, setEditorValueclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, isCompactViewEnabled, setEditorValuepublic static final java.lang.String MATCH_TYPES_KEY
public CmsDisplayTypeSelectWidget()
public java.lang.String getConfiguration()
A_CmsWidgetgetConfiguration in interface I_CmsWidgetgetConfiguration in class A_CmsSelectWidgetA_CmsSelectWidget.getConfiguration()public java.lang.String getConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)
I_CmsADEWidgetgetConfiguration in interface I_CmsADEWidgetgetConfiguration in class A_CmsSelectWidgetcms - the OpenCms contextschemaType - the schema typemessages - the messagesresource - the edited resourcecontentLocale - the content localeA_CmsSelectWidget.getConfiguration(org.opencms.file.CmsObject, org.opencms.xml.types.A_CmsXmlContentValue, org.opencms.i18n.CmsMessages, org.opencms.file.CmsResource, java.util.Locale)public java.lang.String getWidgetName()
I_CmsADEWidgetgetWidgetName in interface I_CmsADEWidgetgetWidgetName in class CmsSelectWidgetCmsSelectWidget.getWidgetName()public I_CmsWidget newInstance()
I_CmsWidgetnewInstance in interface I_CmsWidgetnewInstance in class CmsSelectWidgetCmsSelectWidget.newInstance()public void setConfiguration(java.lang.String configuration)
I_CmsWidgetThis can be used to enable / disable certain widget features that should not always be available, or to pass specific initialization information to the widget. It depends on the widget implementation on how this information is used.
setConfiguration in interface I_CmsWidgetsetConfiguration in class A_CmsSelectWidgetconfiguration - the configuration to setA_CmsSelectWidget.setConfiguration(java.lang.String)protected java.util.List<CmsSelectWidgetOption> parseSelectOptions(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
A_CmsSelectWidget
The list elements are of type .
The configuration String is parsed only once and then stored internally.CmsSelectWidgetOption
parseSelectOptions in class A_CmsSelectWidgetcms - the current users OpenCms contextwidgetDialog - the dialog of this widgetparam - the widget parameter of this dialogA_CmsSelectWidget.parseSelectOptions(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)