Interface I_CmsADEWidget

    • Method Detail

      • getConfiguration

        java.lang.String getConfiguration​(CmsObject cms,
                                          A_CmsXmlContentValue contentValue,
                                          CmsMessages messages,
                                          CmsResource resource,
                                          java.util.Locale contentLocale)
        Returns the configuration string for the ADE content editor widget.

        Parameters:
        cms - the OpenCms context
        contentValue - the schema type
        messages - the messages
        resource - the edited resource
        contentLocale - the content locale
        Returns:
        the configuration string
      • getCssResourceLinks

        java.util.List<java.lang.String> getCssResourceLinks​(CmsObject cms)
        Returns a list of CSS resources required by the widget.

        Parameters:
        cms - the current OpenCms context
        Returns:
        the required CSS resource links
      • getInitCall

        java.lang.String getInitCall()
        Returns the java script initialization call.

        Returns:
        the java script initialization call
      • getJavaScriptResourceLinks

        java.util.List<java.lang.String> getJavaScriptResourceLinks​(CmsObject cms)
        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

        java.lang.String 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:
        true if this is an internal widget