public abstract class A_CmsFormatterWidget extends CmsSelectWidget
限定符和类型 | 类和说明 |
---|---|
static class |
A_CmsFormatterWidget.FormatterSelectComparator
Comparator used to sort formatter beans in the order in which they should be displayed in the selection.
|
A_CmsWidget.CmsDummyWidgetDialog
CONFIGURATION_HEIGHT
HELP_POSTFIX, LABEL_PREFIX
构造器和说明 |
---|
A_CmsFormatterWidget() |
限定符和类型 | 方法和说明 |
---|---|
protected abstract java.util.List<CmsSelectWidgetOption> |
getFormatterOptions(CmsObject cms,
CmsADEConfigData config)
Gets the options corresponding to external (non-schema) formatters.
|
protected abstract java.util.Set<java.lang.String> |
getSelectedInFile(CmsConfigurationReader reader,
CmsXmlContent content)
Gets the values which have already been selected in the edited resource on the VFS.
|
protected abstract java.util.List<CmsSelectWidgetOption> |
getTypeOptions(CmsObject cms,
CmsADEConfigData config)
Gets the options corresponding to the schemas which define formatters.
|
static CmsSelectWidgetOption |
getWidgetOptionForFormatter(CmsObject cms,
I_CmsFormatterBean formatter)
Creates a widget option corresponding to a formatter bean for an external formatter.
|
static CmsSelectWidgetOption |
getWidgetOptionForType(CmsObject cms,
java.lang.String typeName)
Creates a widget option for a resource type.
|
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.
|
getDialogWidget, getWidgetName, getWidgetStringValue, newInstance
addSelectOption, getConfiguration, getConfiguration, getCssResourceLinks, getDefaultDisplayType, getHeight, getInitCall, getJavaScriptResourceLinks, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, isInternal, setConfiguration, setSelectOptions
equals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, hashCode, isCompactViewEnabled, setEditorValue
getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, isCompactViewEnabled, setEditorValue
public static CmsSelectWidgetOption getWidgetOptionForFormatter(CmsObject cms, I_CmsFormatterBean formatter)
cms
- the current CMS contextformatter
- the formatter beanpublic static CmsSelectWidgetOption getWidgetOptionForType(CmsObject cms, java.lang.String typeName)
cms
- the current CMS contexttypeName
- the type for which we want a widget optionprotected abstract java.util.List<CmsSelectWidgetOption> getFormatterOptions(CmsObject cms, CmsADEConfigData config)
cms
- the CMS contextconfig
- the ADE configurationprotected abstract java.util.Set<java.lang.String> getSelectedInFile(CmsConfigurationReader reader, CmsXmlContent content)
reader
- a sitemap configuration readercontent
- the unmarshalled contentprotected abstract java.util.List<CmsSelectWidgetOption> getTypeOptions(CmsObject cms, CmsADEConfigData config)
cms
- the current CMS contextconfig
- the ADE configurationprotected 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
在类中 A_CmsSelectWidget
cms
- 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)