Spec-Zone.ru › OpenJavaFX 24

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(Object obj)
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.

Methods declared in class java.lang.Object

clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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:
equals in class Object
Parameters:
obj - an Object to compare
Returns:
true if this object is the same as the obj argument; false otherwise

Report a bug or suggest an enhancement
Copyright © 2008, 2025, Oracle and/or its affiliates. All rights reserved.

© 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.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API