Class CmsWidgetUtil

java.lang.Object
org.opencms.ade.contenteditor.CmsWidgetUtil

public final class CmsWidgetUtil extends Object
Utility methods for getting widget informations out of content definitions.

  • 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 use
      rootContentDefinition - the content definition
      path - the path relative to the given content definition
      messages - the message bundle to use
      overrideLocale - 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 context
      value - a content value
      Returns:
      the widget information for the given value