Top Description Fields Constructors Methods
javafx.css

public abstract Class StyleableDoubleProperty

extends DoublePropertyBase
implements StyleableProperty<Number>
Class Inheritance
All Implemented Interfaces
javafx.css.StyleableProperty, javafx.beans.value.WritableValue
Known Direct Subclasses
javafx.scene.layout.Region.MinPrefMaxProperty, javafx.css.SimpleStyleableDoubleProperty
Imports
javafx.beans.property.DoublePropertyBase, javafx.beans.value.ObservableValue

This class extends DoublePropertyBase and provides a partial implementation of a StyleableProperty. The method StyleableProperty#getCssMetaData() is not implemented. This class is used to make a javafx.beans.property.DoubleProperty, that would otherwise be implemented as a DoublePropertyBase, styleable by CSS.
Since
JavaFX 8.0
See Also
javafx.beans.property.DoublePropertyBase, CssMetaData, StyleableProperty

Field Summary

Modifier and TypeField and Description
private StyleOrigin

Constructor Summary

AccessConstructor and Description
public
StyleableDoubleProperty()

The constructor of the StyleableDoubleProperty.

public
StyleableDoubleProperty(double
the initial value of the wrapped Object
initialValue
)

The constructor of the StyleableDoubleProperty.

Method Summary

Modifier and TypeMethod and Description
public void
applyStyle(StyleOrigin
the origin
origin
,
Number
the value
v
)

Implements javafx.css.StyleableProperty.applyStyle.

This method is called from CSS code to set the value of the property.

public void
bind(ObservableValue<? extends Number>
The observable this Property should be bound to.
observable
)

Overrides javafx.beans.property.DoublePropertyBase.bind.

Implements javafx.beans.property.Property.bind.

Create a unidirection binding for this Property.

public StyleOrigin
getStyleOrigin()

Implements javafx.css.StyleableProperty.getStyleOrigin.

Tells the origin of the value of the property.

public void
set(double
The new value
v
)

Overrides javafx.beans.property.DoublePropertyBase.set.

Implements javafx.beans.value.WritableDoubleValue.set.

Set the wrapped value.

Inherited from javafx.beans.property.DoublePropertyBase:
addListeneraddListenerfireValueChangedEventgetinvalidatedisBoundremoveListenerremoveListenertoStringunbind

Field Detail

originback to summary
private StyleOrigin origin

Constructor Detail

StyleableDoublePropertyback to summary
public StyleableDoubleProperty()

The constructor of the StyleableDoubleProperty.

StyleableDoublePropertyback to summary
public StyleableDoubleProperty(double initialValue)

The constructor of the StyleableDoubleProperty.

Parameters
initialValue:double

the initial value of the wrapped Object

Method Detail

applyStyleback to summary
public void applyStyle(StyleOrigin origin, Number v)

Implements javafx.css.StyleableProperty.applyStyle.

Doc from javafx.css.StyleableProperty.applyStyle.

This method is called from CSS code to set the value of the property.

Parameters
origin:StyleOrigin

the origin

v:Number

the value

Annotations
@Override
bindback to summary
public void bind(ObservableValue<? extends Number> observable)

Overrides javafx.beans.property.DoublePropertyBase.bind.

Implements javafx.beans.property.Property.bind.

Doc from javafx.beans.property.DoublePropertyBase.bind.

Create a unidirection binding for this Property.

Note that JavaFX has all the bind calls implemented through weak listeners. This means the bound property can be garbage collected and stopped from being updated.

Parameters
observable:ObservableValue<? extends Number>

Doc from javafx.beans.property.Property.bind.

The observable this Property should be bound to.

Annotations
@Override
getStyleOriginback to summary
public StyleOrigin getStyleOrigin()

Implements javafx.css.StyleableProperty.getStyleOrigin.

Doc from javafx.css.StyleableProperty.getStyleOrigin.

Tells the origin of the value of the property. This is needed to determine whether or not CSS can override the value.

Returns:StyleOrigin

the style origin

Annotations
@Override
setback to summary
public void set(double v)

Overrides javafx.beans.property.DoublePropertyBase.set.

Implements javafx.beans.value.WritableDoubleValue.set.

Doc from javafx.beans.property.DoublePropertyBase.set.

Set the wrapped value. Unlike setValue(java.lang.Number), this method uses primitive double.

Parameters
v:double

Doc from javafx.beans.value.WritableDoubleValue.set.

The new value

Annotations
@Override