java.lang.Object
javafx.css.Style
A Style is just the selector and declaration from a Rule.
- Since:
- 9
- 
Constructor SummaryConstructorsConstructorDescriptionStyle(Selector selector, Declaration declaration) Constructs aStyleobject.
- 
Method SummaryModifier and TypeMethodDescriptionThe Declaration that is the source of the style that is about to be applied or has just been applied.A selector might have more than one selector.
- 
Constructor Details- 
StyleConstructs aStyleobject.- Parameters:
- selector- selector for this- Style
- declaration- declaration for this- Style
 
 
- 
- 
Method Details- 
getSelectorA selector might have more than one selector. This is the one that was matched.- Returns:
- the matched selector
 
- 
getDeclarationThe Declaration that is the source of the style that is about to be applied or has just been applied. May be null if the value comes from the CSSProperty's initial (default) value.- Returns:
- the declaration
 
 
-