public interface StyleableProperty<T> extends WritableValue<T>
javafx.beans.property
to be styled from
CSS.
This interface allows coordination between CSS
processing and a javafx.beans.property
. The implementation
ensure that the priority for setting the value is, in increasing order
and assuming equal importance:
Application.setUserAgentStylesheet(java.lang.String)
Node.setOpacity(double)
Scene.getStylesheets()
or Parent.getStylesheets()
Node.setStyle(java.lang.String)
The StyleablePropertyFactory
greatly simplifies creating a StyleableProperty and its corresponding CssMetaData.
StyleablePropertyFactory
Modifier and Type | Method and Description |
---|---|
void |
applyStyle(StyleOrigin origin,
T value)
This method is called from CSS code to set the value of the property.
|
CssMetaData<? extends Styleable,T> |
getCssMetaData()
Reflect back the CssMetaData that corresponds to this
javafx.beans.property.StyleableProperty |
StyleOrigin |
getStyleOrigin()
Tells the origin of the value of the property.
|
getValue, setValue
void applyStyle(StyleOrigin origin, T value)
StyleOrigin getStyleOrigin()
CssMetaData<? extends Styleable,T> getCssMetaData()
javafx.beans.property.StyleableProperty
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.