JavaFX 8.0

Package javafx.css

Provides API for making properties styleable via CSS and for supporting pseudo-class state.

See: Description

Package javafx.css Description

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:

CssMetaData
Defines the CSS property and provides a link back to the StyleableProperty. 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.
StyleableProperty
Defines the interface that the CSS implementation uses to set values on a property and provides a link back to the CssMetaData that corresponds to the property.
PseudoClass
Defines a pseudo-class which can be set or cleared via the method pseudoClassStateChanged.

For further information about CSS, how to apply CSS styles to nodes, and what properties are available for styling, see the CSS Reference Guide.

JavaFX 8.0

Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.




Spec-Zone.ru - all specs in one place