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(T)
, 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<java.lang.String> other)
Create a bidirectional binding between this
Property and another
one. |
void |
setValue(java.lang.String v)
Set the wrapped value.
|
java.lang.String |
toString()
Returns a string representation of this
StringProperty object. |
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 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 java.lang.String toString()
StringProperty
object.toString
in class ReadOnlyStringProperty
StringProperty
object.Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to