T
- the specific propertypublic interface StyleableProperty<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:
javafx.application.Application#setUserAgentStylesheet(java.lang.String)
javafx.scene.Node#setOpacity(double)
javafx.scene.Scene#getStylesheets()
or javafx.scene.Parent#getStylesheets()
javafx.scene.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.
|
void applyStyle(StyleOrigin origin, T value)
origin
- the originvalue
- the valueStyleOrigin getStyleOrigin()
CssMetaData<? extends Styleable,T> getCssMetaData()
javafx.beans.property.StyleableProperty