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, unbind
bindBidirectional, bindBidirectional, bindBidirectional, setValue, unbindBidirectional, unbindBidirectional
concat, getValue, getValueSafe, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, isEmpty, isEqualTo, isEqualTo, isEqualToIgnoreCase, isEqualToIgnoreCase, isNotEmpty, isNotEqualTo, isNotEqualTo, isNotEqualToIgnoreCase, isNotEqualToIgnoreCase, isNotNull, isNull, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, stringExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCssMetaData
getValue, setValue
getBean, getName
getValue
public StyleableStringProperty()
StyleableStringProperty
.public StyleableStringProperty(String initialValue)
StyleableStringProperty
.initialValue
- the initial value of the wrapped Object
public 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 StringPropertyBase
observable
- 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 StringPropertyBase
v
- The new valueWritableObjectValue.get()
public StyleOrigin getStyleOrigin()
getStyleOrigin
in interface StyleableProperty<String>
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.