public abstract class StyleableStringProperty extends StringPropertyBase implements StyleableProperty<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(String initialValue)
The constructor of the
StyleableStringProperty. |
| Modifier and Type | Method and Description |
|---|---|
void |
applyStyle(StyleOrigin origin,
String v)
This method is called from CSS code to set the value of the property.
|
void |
bind(ObservableValue<? extends String> observable)
Create a unidirection binding for this
Property. |
StyleOrigin |
getStyleOrigin()
Tells the origin of the value of the property.
|
void |
set(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(String initialValue)
StyleableStringProperty.initialValue - the initial value of the wrapped Objectpublic void applyStyle(StyleOrigin origin, String v)
applyStyle in interface StyleableProperty<String>public void bind(ObservableValue<? extends 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<String>bind in class StringPropertyBaseobservable - The observable this Property should be bound to.public void set(String v)
WritableValue.setValue(java.lang.Object)set in interface WritableObjectValue<String>set in class StringPropertyBasev - The new valueWritableObjectValue.get()public StyleOrigin getStyleOrigin()
getStyleOrigin in interface StyleableProperty<String>Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.