Package org.opencms.widgets
Interface I_CmsADEWidget
- All Superinterfaces:
I_CmsWidget
- All Known Implementing Classes:
A_CmsAdeGalleryWidget,A_CmsCategorizedSelectWidget,A_CmsFormatterWidget,A_CmsGalleryWidget,A_CmsSelectWidget,CmsAccessRestrictionWidget,CmsAddFormatterWidget,CmsAdeDownloadGalleryWidget,CmsAdeImageGalleryWidget,CmsCalendarWidget,CmsCategoryWidget,CmsCheckboxWidget,CmsCodeWidget,CmsColorpickerWidget,CmsComboWidget,CmsDependentSelectWidget,CmsDisplayTypeSelectWidget,CmsDisplayWidget,CmsDownloadGalleryWidget,CmsElementViewSelectWidget,CmsFilterSelectWidget,CmsGroupWidget,CmsHtmlWidget,CmsImageGalleryWidget,CmsInputWidget,CmsInputWidgetPlaintext,CmsLinkGalleryWidget,CmsLocalizationWidget,CmsLocationPickerWidget,CmsMultiSelectGroupWidget,CmsMultiSelectWidget,CmsOrgUnitWidget,CmsPasswordWidget,CmsPrincipalWidget,CmsRadioSelectWidget,CmsRemoveFormatterWidget,CmsSelectComboWidget,CmsSelectGroupWidget,CmsSelectOnChangeReloadWidget,CmsSelectWidget,CmsSerialDateWidget,CmsTextareaWidget,CmsTextareaWidgetPlaintext,CmsTypeComboWidget,CmsTypeFilterWidget,CmsUserWidget,CmsVfsFileWidget,CmsVfsImageWidget
Widgets to be used with the new XML content editor are required to implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(CmsObject cms, A_CmsXmlContentValue contentValue, CmsMessages messages, CmsResource resource, Locale contentLocale) Returns the configuration string for the ADE content editor widget.Returns a list of CSS resources required by the widget.Returns the default display type of this widget.Returns the java script initialization call.Returns a list of java script resources required by the widget.Returns the class name of the widget.booleanReturns if this is an internal widget.Methods inherited from interface org.opencms.widgets.I_CmsWidget
getConfiguration, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getDialogWidget, getHelpBubble, getHelpText, getWidgetStringValue, isCompactViewEnabled, newInstance, setConfiguration, setEditorValue
-
Method Details
-
getConfiguration
String getConfiguration(CmsObject cms, A_CmsXmlContentValue contentValue, CmsMessages messages, CmsResource resource, Locale contentLocale) Returns the configuration string for the ADE content editor widget.- Parameters:
cms- the OpenCms contextcontentValue- the schema typemessages- the messagesresource- the edited resourcecontentLocale- the content locale- Returns:
- the configuration string
-
getCssResourceLinks
Returns a list of CSS resources required by the widget.- Parameters:
cms- the current OpenCms context- Returns:
- the required CSS resource links
-
getDefaultDisplayType
Returns the default display type of this widget.- Returns:
- the default display type
-
getInitCall
Returns the java script initialization call.- Returns:
- the java script initialization call
-
getJavaScriptResourceLinks
Returns a list of java script resources required by the widget.- Parameters:
cms- the current OpenCms context- Returns:
- the required java script resource links
-
getWidgetName
Returns the class name of the widget.- Returns:
- the class name
-
isInternal
boolean isInternal()Returns if this is an internal widget.Only widgets belonging to the OpenCms core should be marked as internal.
- Returns:
trueif this is an internal widget
-