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 Summary
Modifier 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
-
getParsedValue
Gets the parsed value.- Returns:
- the parsed value
-
getProperty
Gets the CSS property name.- Returns:
- the CSS property
-
getRule
Gets theRuleto which thisDeclarationbelongs.- Returns:
- the
Rule
-
isImportant
public final boolean isImportant()Gets the importance of thisDeclaration.- Returns:
- the important flag
-
equals
Indicates 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.
-