java.lang.Object
javafx.css.CssParser
public final class CssParser extends Object
- Since:
- 9
- 
Property SummaryProperties Type Property Description static ObservableList<CssParser.ParseError>errors
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCssParser.ParseErrorEncapsulate information about the source and nature of errors encountered while parsing CSS or applying styles to Nodes.
- 
Constructor SummaryConstructors Constructor Description CssParser()
- 
Method SummaryModifier and Type Method Description static ObservableList<CssParser.ParseError>errorsProperty()Stylesheetparse(String stylesheetText)Creates a stylesheet from a CSS document string.Stylesheetparse(String docbase, String stylesheetText)Creates a stylesheet from a CSS document string using docbase as the base URL for resolving references within stylesheet.Stylesheetparse(URL url)Updates the given stylesheet by reading a CSS document from a URL, assuming UTF-8 encoding.StylesheetparseInlineStyle(Styleable node)Parse an in-line style from a Node.
- 
Property Details- 
errors
 
- 
- 
Constructor Details- 
CssParserpublic CssParser()
 
- 
- 
Method Details- 
parseCreates a stylesheet from a CSS document string.- Parameters:
- stylesheetText- the CSS document to parse
- Returns:
- the Stylesheet
 
- 
parseCreates a stylesheet from a CSS document string using docbase as the base URL for resolving references within stylesheet.- 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 a Node.- Parameters:
- node- the styleable node
- Returns:
- the style sheet
 
- 
errorsProperty
 
-