Top Description Fields Constructors Methods
javafx.css

public abstract Class StyleableObjectProperty<T>

extends ObjectPropertyBase<T>
implements StyleableProperty<T>
Class Inheritance
All Implemented Interfaces
javafx.css.StyleableProperty, javafx.beans.value.WritableValue
Known Direct Subclasses
javafx.scene.layout.Region.ShapeProperty, javafx.css.SimpleStyleableObjectProperty
Imports
javafx.beans.property.ObjectPropertyBase, javafx.beans.value.ObservableValue

This class extends ObjectPropertyBase 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.ObjectProperty, that would otherwise be implemented as a ObjectPropertyBase, styleable by CSS.
Since
JavaFX 8.0
See Also
javafx.beans.property.ObjectPropertyBase, CssMetaData, StyleableProperty

Field Summary

Modifier and TypeField and Description
private StyleOrigin

Constructor Summary

AccessConstructor and Description
public
StyleableObjectProperty()

The constructor of the StyleableObjectProperty.

public
StyleableObjectProperty(T
the initial value of the wrapped Object
initialValue
)

The constructor of the StyleableObjectProperty.

Method Summary

Modifier and TypeMethod and Description
public void
applyStyle(StyleOrigin
the origin
origin
,
T
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 T>
The observable this Property should be bound to.
observable
)

Overrides javafx.beans.property.ObjectPropertyBase.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(T
The new value
v
)

Overrides javafx.beans.property.ObjectPropertyBase.set.

Implements javafx.beans.value.WritableObjectValue.set.

Set the wrapped value.

Inherited from javafx.beans.property.ObjectPropertyBase:
addListeneraddListenerfireValueChangedEventgetinvalidatedisBoundremoveListenerremoveListenertoStringunbind

Field Detail

originback to summary
private StyleOrigin origin

Constructor Detail

StyleableObjectPropertyback to summary
public StyleableObjectProperty()

The constructor of the StyleableObjectProperty.

StyleableObjectPropertyback to summary
public StyleableObjectProperty(T initialValue)

The constructor of the StyleableObjectProperty.

Parameters
initialValue:T

the initial value of the wrapped Object

Method Detail

applyStyleback to summary
public void applyStyle(StyleOrigin origin, T 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:T

the value

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

Overrides javafx.beans.property.ObjectPropertyBase.bind.

Implements javafx.beans.property.Property.bind.

Doc from javafx.beans.property.ObjectPropertyBase.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 T>

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(T v)

Overrides javafx.beans.property.ObjectPropertyBase.set.

Implements javafx.beans.value.WritableObjectValue.set.

Doc from javafx.beans.property.ObjectPropertyBase.set.

Set the wrapped value. Should be equivalent to setValue(java.lang.Object)

Parameters
v:T

Doc from javafx.beans.value.WritableObjectValue.set.

The new value

Annotations
@Override