public abstract class StringProperty extends ReadOnlyStringProperty implements Property<java.lang.String>, WritableStringValue
Property wrapping a
String value.
The value of a StringProperty can be get and set with ObservableObjectValue.get(),
StringExpression.getValue(), WritableObjectValue.set(Object), and setValue(String).
A property can be bound and unbound unidirectional with
Property.bind(ObservableValue) and Property.unbind(). Bidirectional bindings
can be created and removed with bindBidirectional(Property) and
unbindBidirectional(Property).
The context of a StringProperty can be read with ReadOnlyProperty.getBean()
and ReadOnlyProperty.getName().| Constructor and Description |
|---|
StringProperty() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindBidirectional(Property<?> other,
java.text.Format format)
Create a bidirectional binding between this
StringProperty and another
arbitrary property. |
void |
bindBidirectional(Property<java.lang.String> other)
Create a bidirectional binding between this
Property and another
one. |
<T> void |
bindBidirectional(Property<T> other,
StringConverter<T> converter)
Create a bidirectional binding between this
StringProperty and another
arbitrary property. |
void |
setValue(java.lang.String v)
Set the wrapped value.
|
java.lang.String |
toString()
Returns a string representation of this
StringProperty object. |
void |
unbindBidirectional(java.lang.Object other)
Remove a bidirectional binding between this
Property and another
one. |
void |
unbindBidirectional(Property<java.lang.String> other)
Remove a bidirectional binding between this
Property and another
one. |
equals, hashCodeconcat, getValue, getValueSafe, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, isEqualTo, isEqualTo, isEqualToIgnoreCase, isEqualToIgnoreCase, isNotEqualTo, isNotEqualTo, isNotEqualToIgnoreCase, isNotEqualToIgnoreCase, isNotNull, isNull, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, stringExpressionclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBean, getNameaddListener, getValue, removeListeneraddListener, removeListenerget, setgetValuegetpublic void setValue(java.lang.String v)
setValue in interface WritableValue<java.lang.String>v - The new valuepublic void bindBidirectional(Property<java.lang.String> other)
Property and another
one.bindBidirectional in interface Property<java.lang.String>other - the other Propertypublic void bindBidirectional(Property<?> other, java.text.Format format)
StringProperty and another
arbitrary property. Relies on an implementation of Format for conversion.other - the other Propertyformat - the Format used to convert between this StringProperty
and the other Propertyjava.lang.NullPointerException - if other or format is nulljava.lang.IllegalArgumentException - if other is thispublic <T> void bindBidirectional(Property<T> other, StringConverter<T> converter)
StringProperty and another
arbitrary property. Relies on an implementation of StringConverter for conversion.other - the other Propertyconverter - the StringConverter used to convert between this StringProperty
and the other Propertyjava.lang.NullPointerException - if other or converter is nulljava.lang.IllegalArgumentException - if other is thispublic void unbindBidirectional(Property<java.lang.String> other)
Property and another
one.
If no bidirectional binding between the properties exists, calling this
method has no effect.unbindBidirectional in interface Property<java.lang.String>other - the other Propertypublic void unbindBidirectional(java.lang.Object other)
Property and another
one.
If no bidirectional binding between the properties exists, calling this
method has no effect.other - the other Propertyjava.lang.NullPointerException - if other is nulljava.lang.IllegalArgumentException - if other is thispublic java.lang.String toString()
StringProperty object.toString in class ReadOnlyStringPropertyStringProperty object.Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.