java.lang.Object
javafx.css.CssParser
A parser for a CSS document string.
- Since:
- 9
- 
Property SummaryPropertiesTypePropertyDescriptionstatic ObservableList<CssParser.ParseError>List of errors that may have occurred during CSS processing.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classA class that encapsulates information about the source and nature of errors encountered while parsing CSS or applying styles to Nodes.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObservableList<CssParser.ParseError>List of errors that may have occurred during CSS processing.Creates aStylesheetfrom a CSS document string.Creates aStylesheetfrom a CSS document string using docbase as the base URL for resolving references withinStylesheet.Updates the given stylesheet by reading a CSS document from a URL, assuming UTF-8 encoding.parseInlineStyle(Styleable node) Parse an in-line style from aNode.
- 
Property Details- 
errorsList of errors that may have occurred during CSS processing.
 
- 
- 
Constructor Details- 
CssParserpublic CssParser()Constructs aCssParser.
 
- 
- 
Method Details- 
parseCreates aStylesheetfrom a CSS document string.- Parameters:
- stylesheetText- the CSS document to parse
- Returns:
- the Stylesheet
 
- 
parseCreates aStylesheetfrom a CSS document string using docbase as the base URL for resolving references withinStylesheet.- Parameters:
- docbase- the doc base for resolving URL references
- stylesheetText- the CSS document to parse
- Returns:
- the Stylesheet
- Throws:
- IOException- the exception
 
- 
parseUpdates the given stylesheet by reading a CSS document from a URL, assuming UTF-8 encoding.- Parameters:
- url- URL of the stylesheet to parse
- Returns:
- the stylesheet
- Throws:
- IOException- the exception
 
- 
parseInlineStyleParse an in-line style from aNode.- Parameters:
- node- the styleable node
- Returns:
- the style sheet
 
- 
errorsPropertyList of errors that may have occurred during CSS processing.
 
-