Rule (Java SE 10 & JDK 10 ) (original) (raw)
- javafx.css.Rule
public final class Rule
extends Object
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description ObservableList<Declaration> getDeclarations() This method is to support tooling that may want to add declarations to or remove declarations from a Rule. StyleOrigin getOrigin() ObservableList<Selector> getSelectors() This method is to support tooling that may want to add selectors to or remove selectors from a Rule. Stylesheet getStylesheet() String toString() Converts this object to a string. * ### Methods declared in class java.lang.[Object](../../java/lang/Object.html "class in java.lang") `[clone](../../java/lang/Object.html#clone%28%29), [equals](../../java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../java/lang/Object.html#finalize%28%29), [getClass](../../java/lang/Object.html#getClass%28%29), [hashCode](../../java/lang/Object.html#hashCode%28%29), [notify](../../java/lang/Object.html#notify%28%29), [notifyAll](../../java/lang/Object.html#notifyAll%28%29), [wait](../../java/lang/Object.html#wait%28%29), [wait](../../java/lang/Object.html#wait%28long%29), [wait](../../java/lang/Object.html#wait%28long,int%29)`
Method Detail
* #### getDeclarations public final [ObservableList](../../javafx/collections/ObservableList.html "interface in javafx.collections")<[Declaration](../../javafx/css/Declaration.html "class in javafx.css")> getDeclarations() This method is to support tooling that may want to add declarations to or remove declarations from a Rule. Changes to the list are tracked so that added declarations are tagged as belonging to this rule, and the rule for removed declarations is nulled out. Returns: a observable list of declarations * #### getSelectors public final [ObservableList](../../javafx/collections/ObservableList.html "interface in javafx.collections")<[Selector](../../javafx/css/Selector.html "class in javafx.css")> getSelectors() This method is to support tooling that may want to add selectors to or remove selectors from a Rule. Changes to the list are tracked so that added selectors are tagged as belonging to this rule, and the rule for removed selectors is nulled out. Returns: an observable list of selectors * #### getStylesheet public [Stylesheet](../../javafx/css/Stylesheet.html "class in javafx.css") getStylesheet() * #### getOrigin public [StyleOrigin](../../javafx/css/StyleOrigin.html "enum in javafx.css") getOrigin() * #### toString public [String](../../java/lang/String.html "class in java.lang") toString() Converts this object to a string. Overrides: `[toString](../../java/lang/Object.html#toString%28%29)` in class `[Object](../../java/lang/Object.html "class in java.lang")` Returns: the converted string
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2018, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.