Spec-Zone .ru
спецификации, руководства, описания, API
|
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, hashCode
concat, getValue, getValueSafe, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, isEqualTo, isEqualTo, isEqualToIgnoreCase, isEqualToIgnoreCase, isNotEqualTo, isNotEqualTo, isNotEqualToIgnoreCase, isNotEqualToIgnoreCase, isNotNull, isNull, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, stringExpression
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBean, getName
addListener, getValue, removeListener
addListener, removeListener
get, set
getValue
get
public 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 Property
public void bindBidirectional(Property<?> other, java.text.Format format)
StringProperty
and another
arbitrary property. Relies on an implementation of Format
for conversion.other
- the other Property
format
- the Format
used to convert between this StringProperty
and the other Property
java.lang.NullPointerException
- if other
or format
is null
java.lang.IllegalArgumentException
- if other
is this
public <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 Property
converter
- the StringConverter
used to convert between this StringProperty
and the other Property
java.lang.NullPointerException
- if other
or converter
is null
java.lang.IllegalArgumentException
- if other
is this
public 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 Property
public 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 Property
java.lang.NullPointerException
- if other
is null
java.lang.IllegalArgumentException
- if other
is this
public java.lang.String toString()
StringProperty
object.toString
in class ReadOnlyStringProperty
StringProperty
object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to