Property wrapping a
String value.
The value of a StringProperty can be get and set with get(),
getValue(), set(Object), and setValue(String).
A property can be bound and unbound unidirectional with
bind(ObservableValue) and unbind(). Bidirectional bindings
can be created and removed with bindBidirectional(Property) and
unbindBidirectional(Property).
The context of a StringProperty can be read with getBean()
and getName().
javafx.beans.value.ObservableStringValue , javafx.beans.value.WritableStringValue , ReadOnlyStringProperty, Property
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | bindBidirectional(Property<String> other)
Implements javafx. Create a bidirectional binding between this |
| public void | bindBidirectional(Property<?>
the other other, Format Propertythe format)Format used to convert between this StringProperty
and the other PropertyCreate a bidirectional binding between this |
| public < the type of the wrapped T> voidObject | bindBidirectional(Property<T>
the other other, StringConverter<T> Propertythe converter)StringConverter used to convert between this StringProperty
and the other PropertyCreate a bidirectional binding between this |
| public void | |
| public String | Returns: a string representation of thisStringProperty object.Overrides javafx. Returns a string representation of this |
| public void | unbindBidirectional(Property<String> other)
Implements javafx. Removes a bidirectional binding between this |
| public void | unbindBidirectional(Object
the other other)PropertyRemove a bidirectional binding between this |
| StringProperty | back to summary |
|---|---|
| public StringProperty() Creates a default | |
| bindBidirectional | back to summary |
|---|---|
| public void bindBidirectional(Property<String> other) Implements javafx. Doc from javafx. Create a bidirectional binding between this It is possible to have multiple bidirectional bindings of one Property. JavaFX bidirectional binding implementation use weak listeners. This means bidirectional binding does not prevent properties from being garbage collected.
| |
| bindBidirectional | back to summary |
|---|---|
| public void bindBidirectional(Property<?> other, Format format) Create a bidirectional binding between this
| |
| bindBidirectional | back to summary |
|---|---|
| public <T> void bindBidirectional(Property<T> other, StringConverter<T> converter) Create a bidirectional binding between this
| |
| setValue | back to summary |
|---|---|
| public void setValue(String v) Implements javafx. Doc from javafx. Set the wrapped value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |
| unbindBidirectional | back to summary |
|---|---|
| public void unbindBidirectional(Property<String> other) Implements javafx. Doc from javafx. Removes a bidirectional binding between this
| |
| unbindBidirectional | back to summary |
|---|---|
| public void unbindBidirectional(Object other) Remove a bidirectional binding between this
| |