public class CmsRemoveFormatterWidget extends A_CmsFormatterWidget
Please note that this widget assumes the resource being edited is a sitemap configuration, and will not work correctly in a different context.
A_CmsFormatterWidget.FormatterSelectComparatorA_CmsWidget.CmsDummyWidgetDialogLOGCONFIGURATION_HEIGHTHELP_POSTFIX, LABEL_PREFIX| Constructor and Description |
|---|
CmsRemoveFormatterWidget()
Default constructor.
|
CmsRemoveFormatterWidget(java.lang.String config)
Constructor with a configuration parameter.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getCssResourceLinks(CmsObject cms)
Returns a list of CSS resources required by the widget.
|
protected java.util.List<CmsSelectWidgetOption> |
getFormatterOptions(CmsObject cms,
CmsADEConfigData config,
java.lang.String rootPath,
boolean allRemoved)
Gets the options corresponding to external (non-schema) formatters.
|
java.lang.String |
getInitCall()
Returns the java script initialization call.
|
java.util.List<java.lang.String> |
getJavaScriptResourceLinks(CmsObject cms)
Returns a list of java script resources required by the widget.
|
protected 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 java.util.List<CmsSelectWidgetOption> |
getTypeOptions(CmsObject cms,
CmsADEConfigData adeConfig,
boolean allRemoved)
Gets the options corresponding to the schemas which define formatters.
|
boolean |
isInternal()
Returns if this is an internal widget.
|
I_CmsWidget |
newInstance()
Creates a duplicate of this widget instance.
|
getConfiguration, getWidgetName, getWidgetOptionForFormatter, getWidgetOptionForType, parseSelectOptions, parseSelectOptionsgetDialogWidget, getWidgetStringValueaddSelectOption, getConfiguration, getDefaultDisplayType, getHeight, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, setConfiguration, 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 CmsRemoveFormatterWidget()
public CmsRemoveFormatterWidget(java.lang.String config)
config - the configuration stringpublic java.util.List<java.lang.String> getCssResourceLinks(CmsObject cms)
A_CmsSelectWidgetgetCssResourceLinks in interface I_CmsADEWidgetgetCssResourceLinks in class A_CmsSelectWidgetcms - the current OpenCms contextI_CmsADEWidget.getCssResourceLinks(org.opencms.file.CmsObject)public java.lang.String getInitCall()
A_CmsSelectWidgetgetInitCall in interface I_CmsADEWidgetgetInitCall in class A_CmsSelectWidgetI_CmsADEWidget.getInitCall()public java.util.List<java.lang.String> getJavaScriptResourceLinks(CmsObject cms)
A_CmsSelectWidgetgetJavaScriptResourceLinks in interface I_CmsADEWidgetgetJavaScriptResourceLinks in class A_CmsSelectWidgetcms - the current OpenCms contextI_CmsADEWidget.getJavaScriptResourceLinks(org.opencms.file.CmsObject)public boolean isInternal()
A_CmsSelectWidgetOnly widgets belonging to the OpenCms core should be marked as internal.
isInternal in interface I_CmsADEWidgetisInternal in class A_CmsSelectWidgettrue if this is an internal widgetI_CmsADEWidget.isInternal()public I_CmsWidget newInstance()
I_CmsWidgetnewInstance in interface I_CmsWidgetnewInstance in class CmsSelectWidgetCmsSelectWidget.newInstance()protected java.util.List<CmsSelectWidgetOption> getFormatterOptions(CmsObject cms, CmsADEConfigData config, java.lang.String rootPath, boolean allRemoved)
A_CmsFormatterWidgetgetFormatterOptions in class A_CmsFormatterWidgetcms - the CMS contextconfig - the ADE configurationrootPath - the root path of the edited fileallRemoved - flag, indicating if all inheritedly available formatters should be disabledA_CmsFormatterWidget.getFormatterOptions(org.opencms.file.CmsObject, org.opencms.ade.configuration.CmsADEConfigData, java.lang.String, boolean)protected java.util.Set<java.lang.String> getSelectedInFile(CmsConfigurationReader reader, CmsXmlContent content)
A_CmsFormatterWidgetgetSelectedInFile in class A_CmsFormatterWidgetreader - a sitemap configuration readercontent - the unmarshalled contentA_CmsFormatterWidget.getSelectedInFile(org.opencms.ade.configuration.CmsConfigurationReader, org.opencms.xml.content.CmsXmlContent)protected java.util.List<CmsSelectWidgetOption> getTypeOptions(CmsObject cms, CmsADEConfigData adeConfig, boolean allRemoved)
A_CmsFormatterWidgetgetTypeOptions in class A_CmsFormatterWidgetcms - the current CMS contextadeConfig - the ADE configurationallRemoved - flag, indicating if all inheritedly available formatters should be disabledA_CmsFormatterWidget.getTypeOptions(org.opencms.file.CmsObject, org.opencms.ade.configuration.CmsADEConfigData, boolean)