See: Description
| Interface | Description |
|---|---|
| Styleable |
Styleable comprises the minimal interface required for an object to be styled by CSS.
|
| StyleableProperty<T> |
StyleableProperty allows a
javafx.beans.property to be styled from
CSS. |
| Class | Description |
|---|---|
| CssMetaData<S extends Styleable,V> |
A CssMetaData instance provides information about the CSS style and
provides the hooks that allow CSS to set a property value.
|
| FontCssMetaData<S extends Styleable> |
An partial implementation of CssMetaData for Font properties which
includes the font sub-properties: weight, style, family and size.
|
| ParsedValue<V,T> |
A representation of a parsed CSS value.
|
| PseudoClass |
PseudoClass represents one unique pseudo-class state.
|
| SimpleStyleableBooleanProperty |
This class extends
SimpleBooleanProperty and provides a full
implementation of a StyleableProperty. |
| SimpleStyleableDoubleProperty |
This class extends
SimpleDoubleProperty and provides a full
implementation of a StyleableProperty. |
| SimpleStyleableFloatProperty |
This class extends
SimpleFloatProperty and provides a full
implementation of a StyleableProperty. |
| SimpleStyleableIntegerProperty |
This class extends
SimpleIntegerProperty and provides a full
implementation of a StyleableProperty. |
| SimpleStyleableLongProperty |
This class extends
SimpleLongProperty and provides a full
implementation of a StyleableProperty. |
| SimpleStyleableObjectProperty<T> |
This class extends
SimpleObjectProperty and provides a full
implementation of a StyleableProperty. |
| SimpleStyleableStringProperty |
This class extends
SimpleStringProperty and provides a full
implementation of a StyleableProperty. |
| StyleableBooleanProperty |
This class extends
BooleanPropertyBase and provides a partial
implementation of a StyleableProperty. |
| StyleableDoubleProperty |
This class extends
DoublePropertyBase and provides a partial
implementation of a StyleableProperty. |
| StyleableFloatProperty |
This class extends
FloatPropertyBase and provides a partial
implementation of a StyleableProperty. |
| StyleableIntegerProperty |
This class extends
IntegerPropertyBase and provides a partial
implementation of a StyleableProperty. |
| StyleableLongProperty |
This class extends
LongPropertyBase and provides a partial
implementation of a StyleableProperty. |
| StyleableObjectProperty<T> |
This class extends
ObjectPropertyBase and provides a partial
implementation of a StyleableProperty. |
| StyleablePropertyFactory<S extends Styleable> |
Methods for creating instances of StyleableProperty with corresponding CssMetaData created behind the scenes.
|
| StyleableStringProperty |
This class extends
StringPropertyBase and provides a partial
implementation of a StyleableProperty. |
| StyleConverter<F,T> |
Converter converts
ParsedValue&tl;F,T> from type F to type T. |
| Enum | Description |
|---|---|
| StyleOrigin |
Enumeration of the possible source or origin of a stylesheet and styles.
|
Provides API for making properties styleable via CSS and for supporting pseudo-class state.
The JavaFX Scene Graph provides the facility to style nodes using
CSS (Cascading Style Sheets).
The Node class contains id, styleClass, and
style variables which are used by CSS selectors to find nodes
to which styles should be applied. The Scene class and
Parent class contain a
the stylesheets variable which is a list of URLs that
reference CSS style sheets that are to be applied to the nodes within
that scene or parent.
The primary classes in this package are:
CssMetaDataStyleableProperty.
By convention, classes that have CssMetaData implement a
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() method that
allows other classes to include CssMetaData from an inherited class. The
method getCssMetaData() should
be overridden to return getClassCssMetaData(). The CSS implementation
frequently calls getCssMetaData(). It is strongly recommended that
the returned list be a final static.StyleablePropertyCssMetaData that
corresponds to the property. The StyleablePropertyFactory
greatly simplifies creating a StyleableProperty and its corresponding CssMetaData.PseudoClasspseudoClassStateChanged. For further information about CSS, how to apply CSS styles to nodes, and what properties are available for styling, see the CSS Reference Guide.
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.