Class FontCssMetaData<S extends Styleable>
java.lang.Object
javafx.css.CssMetaData<S,Font>
javafx.css.FontCssMetaData<S>
- Type Parameters:
S- The type of Styleable
An partial implementation of CssMetaData for Font properties which
includes the font sub-properties: weight, style, family and size.
- Since:
- JavaFX 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionFontCssMetaData(String property, Font initial) Constructs a FontCSSMetaData object from the specified property and initial Font. -
Method Summary
Methods declared in class CssMetaData
equals, getConverter, getInitialValue, getProperty, getStyleableProperty, getSubProperties, isInherits, isSettable, setModifier and TypeMethodDescriptionbooleanTwo CssMetaData objects are considered to be equal if theirpropertyvalues are equal.final StyleConverter<?, Font> Gets the CSS converter that handles conversion from a CSS value to a Java Object.getInitialValue(S styleable) The initial value of a CssMetaData corresponds to the default value of the StyleableProperty in code.final StringGets the CSS property name.abstract StyleableProperty<Font> getStyleableProperty(S styleable) Return the correspondingStyleablePropertyfor the given Node.final List<CssMetaData<? extends Styleable, ?>> The sub-properties refers to the constituent properties of this property, if any.final booleanIf true, the value of this property is the same as the parent's computed value of this property.abstract booleanisSettable(S styleable) Check to see if the corresponding property on the given Node is settable.voidset(S styleable, Font value, StyleOrigin origin) Deprecated.This method is no longer called from CSS code.
-
Constructor Details
-
FontCssMetaData
Constructs a FontCSSMetaData object from the specified property and initial Font. The property name is concatenated with "-weight", "-style", "-family" and "-size" to create the sub-properties. For example,new FontCssMetaData<Text>("-fx-font", Font.getDefault());will create a CssMetaData for "-fx-font" with sub-properties: "-fx-font-weight", "-fx-font-style", "-fx-font-family" and "-fx-font-size"- Parameters:
property- the property nameinitial- the initial font
-