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 boolean
equals(Object obj)
Indicates whether some otherObject
is "equal to" this one.ParsedValue
getParsedValue()
Gets the parsed value.String
getProperty()
Gets the CSS property name.Rule
getRule()
Gets theRule
to which thisDeclaration
belongs.boolean
isImportant()
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 theRule
to which thisDeclaration
belongs.- Returns:
- the
Rule
-
isImportant
public final boolean isImportant()Gets the importance of thisDeclaration
.- Returns:
- the important flag
-
equals
Indicates whether some otherObject
is "equal to" this one.One
Declaration
is equal to another regardless of theRule
to which theDeclaration
belongs. Only the property, value and importance are considered.
-