Style (Java SE 10 & JDK 10 ) (original) (raw)
- javafx.css.Style
public final class Style
extends Object
A Style is just the selector and declaration from a Rule.
Since:
9
Constructor Summary
Constructors
Constructor Description Style(Selector selector,Declaration declaration) Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description Declaration getDeclaration() The Declaration that is the source of the style that is about to be applied or has just been applied. Selector getSelector() A selector might have more than one selector. * ### 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), [toString](../../java/lang/Object.html#toString%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)`
Constructor Detail
* #### Style public Style([Selector](../../javafx/css/Selector.html "class in javafx.css") selector, [Declaration](../../javafx/css/Declaration.html "class in javafx.css") declaration)
Method Detail
* #### getSelector public [Selector](../../javafx/css/Selector.html "class in javafx.css") getSelector() A selector might have more than one selector. This is the one that was matched. Returns: the matched selector * #### getDeclaration public [Declaration](../../javafx/css/Declaration.html "class in javafx.css") getDeclaration() The Declaration that is the source of the style that is about to be applied or has just been applied. May be null if the value comes from the CSSProperty's initial (default) value. Returns: the declaration
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.