private class LabeledText.StyleablePropertyMirror<T> extends SimpleStyleableObjectProperty<T> implements InvalidationListener
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
applying |
private StyleableProperty<T> |
property |
Modifier | Constructor and Description |
---|---|
private |
StyleablePropertyMirror(CssMetaData<LabeledText,T> cssMetaData,
java.lang.String name,
T initialValue,
StyleableProperty<T> property) |
Modifier and Type | Method and Description |
---|---|
void |
applyStyle(StyleOrigin newOrigin,
T value)
This method is called from CSS code to set the value of the property.
|
StyleOrigin |
getStyleOrigin()
Tells the origin of the value of the property.
|
void |
invalidated(Observable observable)
This method needs to be provided by an implementation of
InvalidationListener . |
getBean, getCssMetaData, getName
bind, set
addListener, addListener, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbind
bindBidirectional, setValue, unbindBidirectional
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getValue, setValue
getValue
boolean applying
private final StyleableProperty<T> property
private StyleablePropertyMirror(CssMetaData<LabeledText,T> cssMetaData, java.lang.String name, T initialValue, StyleableProperty<T> property)
public void invalidated(Observable observable)
InvalidationListener
InvalidationListener
. It is called if an Observable
becomes invalid.
In general is is considered bad practice to modify the observed value in this method.
invalidated
in interface InvalidationListener
observable
- The Observable
that became invalidpublic void applyStyle(StyleOrigin newOrigin, T value)
StyleableObjectProperty
applyStyle
in interface StyleableProperty<T>
applyStyle
in class StyleableObjectProperty<T>
public StyleOrigin getStyleOrigin()
StyleableObjectProperty
getStyleOrigin
in interface StyleableProperty<T>
getStyleOrigin
in class StyleableObjectProperty<T>