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) StyleableProperty implementation can opt to
support implicit CSS transitions by extending one of the following classes:
StyleableBooleanProperty
StyleableDoubleProperty
StyleableFloatProperty
StyleableIntegerProperty
StyleableLongProperty
StyleableObjectProperty
StyleablePropertyFactory greatly simplifies creating a StyleableProperty and
its corresponding CssMetaData. All properties created using StyleablePropertyFactory
support implicit CSS transitions.
javafx.css.StyleablePropertyFactory
| Modifier and Type | Method and Description |
|---|---|
| public void | applyStyle(StyleOrigin
the origin origin, T the value value)This method is called from CSS code to set the value of the property. |
| public CssMetaData | Returns: the corresponding CssMetaDataReflect back the CssMetaData that corresponds to this
|
| public StyleOrigin |
| applyStyle | back to summary |
|---|---|
| public void applyStyle(StyleOrigin origin, T value) This method is called from CSS code to set the value of the property.
| |
| getCssMetaData | back to summary |
|---|---|
| public CssMetaData Reflect back the CssMetaData that corresponds to this
| |
| getStyleOrigin | back to summary |
|---|---|
| public StyleOrigin getStyleOrigin() Tells the origin of the value of the property. This is needed to determine whether or not CSS can override the value.
| |