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 SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static List<CssInfo>analyzeCss(Iterable<CssRequest> requests, UnaryOperator<URI> urlPostProcessor)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@importrules.static List<CssFontFaceInfo>analyzeCssForFontFaces(Iterable<CssRequest> requests, UnaryOperator<URI> urlPostProcessor)Finds all font faces rules that occur in the given CSS style sheets, including sheets imported via@importrules.static CssFontFaceInfoanalyzeCssForFontFaces(String cssData, String url, UnaryOperator<URI> urlPostProcessor)Finds all font faces rules that occur in the given CSS style sheets, including sheets imported via@importrules.static StringfetchFormThemeCss(Mandant client, FormThemeReference themeReference)
 
- 
- 
- 
Method Detail- 
analyzeCsspublic static List<CssInfo> analyzeCss(Iterable<CssRequest> requests, UnaryOperator<URI> urlPostProcessor) Analyzes the given CSS files and finds all classes and font face rules.- Parameters:
- requests- List of CSS style sheets.
- urlPostProcessor- Post processor for URLs in the CSS files. This is applied e.g. to the font face URLs.
- Returns:
- A list with the result of the analysis. The returned list contains one entry for each given CSS request.
 
 - 
analyzeCssForClassespublic static List<CssClassInfo> analyzeCssForClasses(Iterable<CssRequest> requests) Finds all CSS classes that occur in the given CSS style sheets, including sheets imported via@importrules.- Parameters:
- requests- List of CSS style sheets.
- Returns:
- A list of all CSS classes in the given style sheets.
 
 - 
analyzeCssForFontFacespublic static List<CssFontFaceInfo> analyzeCssForFontFaces(Iterable<CssRequest> requests, UnaryOperator<URI> urlPostProcessor) Finds all font faces rules that occur in the given CSS style sheets, including sheets imported via@importrules.- Parameters:
- requests- List of CSS style sheets.
- urlPostProcessor- Post processor for URLs in the CSS files. This is applied e.g. to the font face URLs.
- Returns:
- A list of all font face rules in the given style sheets. The returned list contains one entry for each given CSS request.
 
 - 
analyzeCssForFontFacespublic static CssFontFaceInfo analyzeCssForFontFaces(String cssData, String url, UnaryOperator<URI> urlPostProcessor) throws URISyntaxException Finds all font faces rules that occur in the given CSS style sheets, including sheets imported via@importrules.- Parameters:
- cssData- Text content of the CSS style sheets.
- url- URL of the CSS file, for resolving relative- @importrules.
- urlPostProcessor- Post processor for URLs in the CSS files. This is applied e.g. to the font face URLs.
- 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.
 
 - 
fetchFormThemeCsspublic static String fetchFormThemeCss(Mandant client, FormThemeReference themeReference) throws IOException - Parameters:
- client- Client to which the current user belongs.
- themeReference- ID of a form theme to retrieve.
- Returns:
- The CSS of the given form theme.
- Throws:
- IOException- When the CSS could not be fetched.
 
 
- 
 
-