Package org.opencms.ade.contenteditor
Class CmsWidgetUtil
java.lang.Object
org.opencms.ade.contenteditor.CmsWidgetUtil
Utility methods for getting widget informations out of content definitions.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Bean representing widget information. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsWidgetUtil.WidgetInfo
collectWidgetInfo
(CmsObject cms, CmsXmlContentDefinition rootContentDefinition, String path, CmsMessages messages, Locale overrideLocale) Collects widget information for a given content definition and content value path.static CmsWidgetUtil.WidgetInfo
collectWidgetInfo
(CmsObject cms, I_CmsXmlContentValue value) Collects widget information for a given content value.
-
Method Details
-
collectWidgetInfo
public static CmsWidgetUtil.WidgetInfo collectWidgetInfo(CmsObject cms, CmsXmlContentDefinition rootContentDefinition, String path, CmsMessages messages, Locale overrideLocale) Collects widget information for a given content definition and content value path.- Parameters:
cms
- the the CMS context to userootContentDefinition
- the content definitionpath
- the path relative to the given content definitionmessages
- the message bundle to useoverrideLocale
- the explicit locale to use for resolving message keys (if null, use the workplace locale of the user)- Returns:
- the widget information for the given path
-
collectWidgetInfo
Collects widget information for a given content value.- Parameters:
cms
- the current CMS contextvalue
- a content value- Returns:
- the widget information for the given value
-