public abstract class StyleableStringProperty extends StringPropertyBase implements StyleableProperty<java.lang.String>
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,
style‑able by CSS.StringPropertyBase,
CssMetaData,
StyleableProperty| Constructor and Description |
|---|
StyleableStringProperty()
The constructor of the
StyleableStringProperty. |
StyleableStringProperty(java.lang.String initialValue)
The constructor of the
StyleableStringProperty. |
| Modifier and Type | Method and Description |
|---|---|
void |
applyStyle(StyleOrigin origin,
java.lang.String v)
This method is called from CSS code to set the value of the property.
|
void |
bind(ObservableValue<? extends java.lang.String> observable)
Create a unidirection binding for this
Property. |
StyleOrigin |
getStyleOrigin()
Tells the origin of the value of the property.
|
void |
set(java.lang.String v)
Set the wrapped value.
|
addListener, addListener, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbindbindBidirectional, bindBidirectional, bindBidirectional, setValue, unbindBidirectional, unbindBidirectionalconcat, getValue, getValueSafe, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, isEmpty, isEqualTo, isEqualTo, isEqualToIgnoreCase, isEqualToIgnoreCase, isNotEmpty, isNotEqualTo, isNotEqualTo, isNotEqualToIgnoreCase, isNotEqualToIgnoreCase, isNotNull, isNull, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, stringExpressionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCssMetaDatagetValue, setValuegetBean, getNamegetValuepublic StyleableStringProperty()
StyleableStringProperty.public StyleableStringProperty(java.lang.String initialValue)
StyleableStringProperty.initialValue - the initial value of the wrapped Objectpublic void applyStyle(StyleOrigin origin, java.lang.String v)
applyStyle in interface StyleableProperty<java.lang.String>public void bind(ObservableValue<? extends java.lang.String> observable)
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.
bind in interface Property<java.lang.String>bind in class StringPropertyBaseobservable - The observable this Property should be bound to.public void set(java.lang.String v)
WritableValue.setValue(java.lang.Object)set in interface WritableObjectValue<java.lang.String>set in class StringPropertyBasev - The new valueWritableObjectValue.get()public StyleOrigin getStyleOrigin()
getStyleOrigin in interface StyleableProperty<java.lang.String>Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.