Top Description Fields Constructors Methods
javafx.css

public abstract Class StyleableStringProperty

extends StringPropertyBase
implements StyleableProperty<String>
Class Inheritance
All Implemented Interfaces
javafx.css.StyleableProperty, javafx.beans.value.WritableValue
Known Direct Subclasses
javafx.css.SimpleStyleableStringProperty
Imports
javafx.beans.property.StringPropertyBase, javafx.beans.value.ObservableValue

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

Field Summary

Modifier and TypeField and Description
private StyleOrigin

Constructor Summary

AccessConstructor and Description
public
StyleableStringProperty()

The constructor of the StyleableStringProperty.

public
StyleableStringProperty(String
the initial value of the wrapped Object
initialValue
)

The constructor of the StyleableStringProperty.

Method Summary

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

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

Overrides javafx.beans.property.StringPropertyBase.set.

Implements javafx.beans.value.WritableObjectValue.set.

Set the wrapped value.

Inherited from javafx.beans.property.StringPropertyBase:
addListeneraddListenerfireValueChangedEventgetinvalidatedisBoundremoveListenerremoveListenertoStringunbind

Field Detail

originback to summary
private StyleOrigin origin

Constructor Detail

StyleableStringPropertyback to summary
public StyleableStringProperty()

The constructor of the StyleableStringProperty.

StyleableStringPropertyback to summary
public StyleableStringProperty(String initialValue)

The constructor of the StyleableStringProperty.

Parameters
initialValue:String

the initial value of the wrapped Object

Method Detail

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

the value

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

Overrides javafx.beans.property.StringPropertyBase.bind.

Implements javafx.beans.property.Property.bind.

Doc from javafx.beans.property.StringPropertyBase.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 String>

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

Overrides javafx.beans.property.StringPropertyBase.set.

Implements javafx.beans.value.WritableObjectValue.set.

Doc from javafx.beans.property.StringPropertyBase.set.

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

Parameters
v:String

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

The new value

Annotations
@Override