Class Declaration
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 |
Indicates whether some other Object is "equal to" this one. |
ParsedValue |
getParsedValue() |
Gets the parsed value. |
String |
getProperty() |
Gets the CSS property name. |
Rule |
getRule() |
Gets the Rule to which this Declaration belongs. |
final boolean |
isImportant() |
Gets the importance of this Declaration. |
Method Details
getParsedValue
public ParsedValue getParsedValue()
Gets the parsed value.
- Returns:
- the parsed value
getProperty
public String getProperty()
Gets the CSS property name.
- Returns:
- the CSS property
getRule
public Rule getRule()
Gets the
Rule to which this Declaration belongs.- Returns:
- the
Rule
isImportant
public final boolean isImportant()
Gets the importance of this
Declaration.- Returns:
- the important flag
equals
public boolean equals(Object obj)
Indicates whether some other
Object is "equal to" this one. One Declaration is equal to another regardless of the Rule to which the Declaration belongs. Only the property, value and importance are considered.
- Overrides:
-
equalsin classObject - Parameters:
-
obj- anObjectto compare - Returns:
-
trueif this object is the same as theobjargument;falseotherwise
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.