Class FormCssHelper
- java.lang.Object
-
- de.xima.fc.gui.designer.form.utils.FormCssHelper
-
public final class FormCssHelper extends Object
Utilities for analyzing CSS classes and fetching CSS themes, seeFormDesignerCssBean
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<CssClassInfo>
analyzeCssForClasses(List<String> cssFiles)
Finds all CSS classes that occur in the given CSS style sheets.static org.json.JSONArray
buildJson(List<CssClassInfo> infoList)
static String
fetchFormThemeCss(Mandant client, long themeId)
-
-
-
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.
-
-