java.lang.Object
javafx.css.Declaration
public final class Declaration extends Object
This class serves as a container of a CSS property and its value.
- Since:
- 9
- 
Method SummaryModifier and Type Method Description booleanequals(Object obj)Indicates whether some otherObjectis "equal to" this one.ParsedValuegetParsedValue()Gets the parsed value.StringgetProperty()Gets the CSS property name.RulegetRule()Gets theRuleto which thisDeclarationbelongs.booleanisImportant()Gets the importance of thisDeclaration.
- 
Method Details- 
getParsedValueGets the parsed value.- Returns:
- the parsed value
 
- 
getPropertyGets the CSS property name.- Returns:
- the CSS property
 
- 
getRuleGets theRuleto which thisDeclarationbelongs.- Returns:
- the Rule
 
- 
isImportantpublic final boolean isImportant()Gets the importance of thisDeclaration.- Returns:
- the important flag
 
- 
equalsIndicates whether some otherObjectis "equal to" this one.One Declarationis equal to another regardless of theRuleto which theDeclarationbelongs. Only the property, value and importance are considered.
 
-