Package org.opencms.ade.contenteditor
Class CmsWidgetUtil
- java.lang.Object
-
- org.opencms.ade.contenteditor.CmsWidgetUtil
-
public final class CmsWidgetUtil extends java.lang.Object
Utility methods for getting widget informations out of content definitions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CmsWidgetUtil.WidgetInfo
Bean representing widget information.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmsWidgetUtil.WidgetInfo
collectWidgetInfo(CmsObject cms, CmsXmlContentDefinition rootContentDefinition, java.lang.String path, CmsMessages messages)
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 Detail
-
collectWidgetInfo
public static CmsWidgetUtil.WidgetInfo collectWidgetInfo(CmsObject cms, CmsXmlContentDefinition rootContentDefinition, java.lang.String path, CmsMessages messages)
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 use- Returns:
- the widget information for the given path
-
collectWidgetInfo
public static CmsWidgetUtil.WidgetInfo collectWidgetInfo(CmsObject cms, I_CmsXmlContentValue value)
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
-
-