E
- the type of the Set
elementspublic abstract class ReadOnlySetProperty<E> extends <any> implements ReadOnlyProperty<<any>>
javafx.collections.ObservableSet
.javafx.collections.ObservableSet
,
javafx.beans.value.ObservableSetValue
,
javafx.beans.binding.SetExpression
,
ReadOnlyProperty
Constructor and Description |
---|
ReadOnlySetProperty()
The constructor of
ReadOnlySetProperty . |
Modifier and Type | Method and Description |
---|---|
void |
bindContent(<any> set)
Creates a content binding between the
javafx.collections.ObservableSet , that is
wrapped in this ReadOnlySetProperty , and another ObservableSet . |
void |
bindContentBidirectional(<any> set)
Creates a bidirectional content binding of the
javafx.collections.ObservableSet , that is
wrapped in this ReadOnlySetProperty , and another ObservableSet . |
boolean |
equals(java.lang.Object obj) |
int |
hashCode()
Returns a hash code for this
ReadOnlySetProperty object. |
java.lang.String |
toString()
Returns a string representation of this
ReadOnlySetProperty object. |
void |
unbindContent(java.lang.Object object)
Deletes a content binding between the
javafx.collections.ObservableSet , that is
wrapped in this ReadOnlySetProperty , and another Object . |
void |
unbindContentBidirectional(java.lang.Object object)
Deletes a bidirectional content binding between the
javafx.collections.ObservableSet , that is
wrapped in this ReadOnlySetProperty , and another Object . |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBean, getName
public ReadOnlySetProperty()
ReadOnlySetProperty
.public void bindContentBidirectional(<any> set)
javafx.collections.ObservableSet
, that is
wrapped in this ReadOnlySetProperty
, and another ObservableSet
.
A bidirectional content binding ensures that the content of two ObservableSets
is the
same. If the content of one of the sets changes, the other one will be updated automatically.
set
- the ObservableSet
this property should be bound tojava.lang.NullPointerException
- if set
is null
java.lang.IllegalArgumentException
- if set
is the same set that this ReadOnlySetProperty
points topublic void unbindContentBidirectional(java.lang.Object object)
javafx.collections.ObservableSet
, that is
wrapped in this ReadOnlySetProperty
, and another Object
.object
- the Object
to which the bidirectional binding should be removedjava.lang.NullPointerException
- if object
is null
java.lang.IllegalArgumentException
- if object
is the same set that this ReadOnlySetProperty
points topublic void bindContent(<any> set)
javafx.collections.ObservableSet
, that is
wrapped in this ReadOnlySetProperty
, and another ObservableSet
.
A content binding ensures that the content of the wrapped ObservableSets
is the
same as that of the other set. If the content of the other set changes, the wrapped set will be updated
automatically. Once the wrapped set is bound to another set, you must not change it directly.
set
- the ObservableSet
this property should be bound tojava.lang.NullPointerException
- if set
is null
java.lang.IllegalArgumentException
- if set
is the same set that this ReadOnlySetProperty
points topublic void unbindContent(java.lang.Object object)
javafx.collections.ObservableSet
, that is
wrapped in this ReadOnlySetProperty
, and another Object
.object
- the Object
to which the binding should be removedjava.lang.NullPointerException
- if object
is null
java.lang.IllegalArgumentException
- if object
is the same set that this ReadOnlySetProperty
points topublic boolean equals(java.lang.Object obj)
public int hashCode()
ReadOnlySetProperty
object.ReadOnlySetProperty
object.public java.lang.String toString()
ReadOnlySetProperty
object.ReadOnlySetProperty
object.