java.lang.Object
javafx.css.Rule
A Rule is a collection of CSS 
Selectors and Declarations.- Since:
- 9
- 
Method SummaryModifier and TypeMethodDescriptionfinal ObservableList<Declaration>This method is to support tooling that may want to add declarations to or remove declarations from a Rule.Get theStyleOriginof thisStylesheet.final ObservableList<Selector>This method is to support tooling that may want to add selectors to or remove selectors from a Rule.Gets theStylesheetthisRulebelongs to.toString()Converts this object to aString.
- 
Method Details- 
getDeclarationsThis method is to support tooling that may want to add declarations to or remove declarations from a Rule. Changes to the list are tracked so that added declarations are tagged as belonging to this rule, and the rule for removed declarations is nulled out.- Returns:
- a observable list of declarations
 
- 
getSelectorsThis method is to support tooling that may want to add selectors to or remove selectors from a Rule. Changes to the list are tracked so that added selectors are tagged as belonging to this rule, and the rule for removed selectors is nulled out.- Returns:
- an observable list of selectors
 
- 
getStylesheetGets theStylesheetthisRulebelongs to.- Returns:
- the stylesheet
 
- 
getOriginGet theStyleOriginof thisStylesheet.- Returns:
- the origin of the stylesheet
 
- 
toStringConverts this object to aString.
 
-