Package javafx.css

Class StyleableStringProperty

All Implemented Interfaces:
Observable, Property<String>, ReadOnlyProperty<String>, ObservableObjectValue<String>, ObservableStringValue, ObservableValue<String>, WritableObjectValue<String>, WritableStringValue, WritableValue<String>, StyleableProperty<String>
Direct Known Subclasses:
SimpleStyleableStringProperty

public abstract class StyleableStringProperty extends StringPropertyBase implements StyleableProperty<String>
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 StringProperty, that would otherwise be implemented as a StringPropertyBase, styleable by CSS.
Since:
JavaFX 8.0
See Also:
  • Constructor Details

    • StyleableStringProperty

      public StyleableStringProperty()
      The constructor of the StyleableStringProperty.
    • StyleableStringProperty

      public StyleableStringProperty(String initialValue)
      The constructor of the StyleableStringProperty.
      Parameters:
      initialValue - the initial value of the wrapped Object
  • Method Details

    • applyStyle

      public void applyStyle(StyleOrigin origin, String v)
      This method is called from CSS code to set the value of the property.
      Specified by:
      applyStyle in interface StyleableProperty<String>
      Parameters:
      origin - the origin
      v - the value
    • getStyleOrigin

      public StyleOrigin getStyleOrigin()
      Tells the origin of the value of the property. This is needed to determine whether or not CSS can override the value.
      Specified by:
      getStyleOrigin in interface StyleableProperty<String>
      Returns:
      the style origin