Class FormCssHelper
java.lang.Object
de.xima.fc.gui.designer.form.utils.FormCssHelper
Utilities for analyzing CSS classes and fetching CSS themes, see
FormDesignerCssBean
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionanalyzeCss
(Iterable<CssRequest> requests) Analyzes the given CSS files and finds all classes and font face rules.static List<CssClassInfo>
analyzeCssForClasses
(Iterable<CssRequest> requests) Finds all CSS classes that occur in the given CSS style sheets, including sheets imported via@import
rules.static List<CssFontFaceInfo>
analyzeCssForFontFaces
(Iterable<CssRequest> requests) Finds all font faces rules that occur in the given CSS style sheets, including sheets imported via@import
rules.static CssFontFaceInfo
analyzeCssForFontFaces
(String cssData, String url) Finds all font faces rules that occur in the given CSS style sheets, including sheets imported via@import
rules.static String
fetchFormThemeCss
(Mandant client, long themeId)
-
Method Details
-
analyzeCss
Analyzes the given CSS files and finds all classes and font face rules.- Parameters:
requests
- List of CSS style sheets.- Returns:
- A list with the result of the analysis. The returned list contains one entry for each given CSS request.
-
analyzeCssForClasses
Finds all CSS classes that occur in the given CSS style sheets, including sheets imported via@import
rules.- Parameters:
requests
- List of CSS style sheets.- Returns:
- A list of all CSS classes in the given style sheets.
-
analyzeCssForFontFaces
Finds all font faces rules that occur in the given CSS style sheets, including sheets imported via@import
rules.- Parameters:
requests
- List of CSS style sheets.- Returns:
- A list of all font face rules in the given style sheets. The returned list contains one entry for each given CSS request.
-
analyzeCssForFontFaces
public static CssFontFaceInfo analyzeCssForFontFaces(String cssData, String url) throws URISyntaxException Finds all font faces rules that occur in the given CSS style sheets, including sheets imported via@import
rules.- Parameters:
cssData
- Text content of the CSS style sheets.url
- URL of the CSS file, for resolving relative@import
rules.- Returns:
- A list of all font face rules in the given style sheets. The returned list contains one entry for each given CSS request.
- Throws:
URISyntaxException
- When the given URL is invalid.
-
fetchFormThemeCss
- 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.
-