Class FormCssHelper


  • public final class FormCssHelper
    extends Object
    Utilities for analyzing CSS classes and fetching CSS themes, see FormDesignerCssBean.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • fetchFormThemeCss

        public static String fetchFormThemeCss​(Mandant client,
                                               long themeId)
        Parameters:
        client - Client to which the current user belongs.
        themeId - ID of a form theme to retrieve.
        Returns:
        The CSS of the given form theme.
      • analyzeCssForClasses

        public static List<CssClassInfo> analyzeCssForClasses​(List<String> cssFiles)
        Finds all CSS classes that occur in the given CSS style sheets.
        Parameters:
        cssFiles - List of CSS style sheets.
        Returns:
        A list of all CSS classes in the given style sheets.
      • buildJson

        public static org.json.JSONArray buildJson​(List<CssClassInfo> infoList)
        Parameters:
        infoList - A list of CSS classes.
        Returns:
        The list as a JSON object that can be sent to the client.