Top Description Constructors Methods
javafx.beans.property

public abstract Class ReadOnlySetProperty<E>

extends SetExpression<E>
implements ReadOnlyProperty<ObservableSet<E>>
Class Inheritance
All Implemented Interfaces
javafx.beans.property.ReadOnlyProperty, javafx.beans.value.ObservableValue, javafx.beans.Observable
Known Direct Subclasses
javafx.beans.property.ReadOnlySetPropertyBase, javafx.beans.property.SetProperty
Type Parameters
<E>
the type of the Set elements
Imports
java.util.Set, javafx.beans.binding.Bindings, .SetExpression, javafx.collections.ObservableSet

Superclass for all readonly properties wrapping an javafx.collections.ObservableSet.
Since
JavaFX 2.1
See Also
javafx.collections.ObservableSet, javafx.beans.value.ObservableSetValue, javafx.beans.binding.SetExpression, ReadOnlyProperty

Constructor Summary

AccessConstructor and Description
public
ReadOnlySetProperty()

The constructor of ReadOnlySetProperty.

Method Summary

Modifier and TypeMethod and Description
public void
bindContent(ObservableSet<E>
the ObservableSet this property should be bound to
set
)

Creates a content binding between the javafx.collections.ObservableSet, that is wrapped in this ReadOnlySetProperty, and another ObservableSet.

public void
bindContentBidirectional(ObservableSet<E>
the ObservableSet this property should be bound to
set
)

Creates a bidirectional content binding of the javafx.collections.ObservableSet, that is wrapped in this ReadOnlySetProperty, and another ObservableSet.

public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

Implements java.util.Set.equals.

Compares the specified object with this set for equality.

public int

Returns:

a hash code for this ReadOnlySetProperty object.
hashCode
()

Overrides java.lang.Object.hashCode.

Implements java.util.Set.hashCode.

Returns a hash code for this ReadOnlySetProperty object.

public String

Returns:

a string representation of this ReadOnlySetProperty object.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this ReadOnlySetProperty object.

public void
unbindContent(Object
the Object to which the binding should be removed
object
)

Deletes a content binding between the javafx.collections.ObservableSet, that is wrapped in this ReadOnlySetProperty, and another Object.

public void
unbindContentBidirectional(Object
the Object to which the bidirectional binding should be removed
object
)

Deletes a bidirectional content binding between the javafx.collections.ObservableSet, that is wrapped in this ReadOnlySetProperty, and another Object.

Inherited from javafx.beans.binding.SetExpression:
addaddAllasStringclearcontainscontainsAllemptyPropertygetSizegetValueisEmptyisEqualToisNotEqualToisNotNullisNulliteratorremoveremoveAllretainAllsetExpressionsizesizePropertytoArraytoArray

Constructor Detail

ReadOnlySetPropertyback to summary
public ReadOnlySetProperty()

The constructor of ReadOnlySetProperty.

Method Detail

bindContentback to summary
public void bindContent(ObservableSet<E> set)

Creates a content binding between the 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.

Parameters
set:ObservableSet<E>

the ObservableSet this property should be bound to

Exceptions
NullPointerException:
if set is null
IllegalArgumentException:
if set is the same set that this ReadOnlySetProperty points to
bindContentBidirectionalback to summary
public void bindContentBidirectional(ObservableSet<E> set)

Creates a bidirectional content binding of the 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.

Parameters
set:ObservableSet<E>

the ObservableSet this property should be bound to

Exceptions
NullPointerException:
if set is null
IllegalArgumentException:
if set is the same set that this ReadOnlySetProperty points to
equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Implements java.util.Set.equals.

Doc from java.util.Set.equals.

Compares the specified object with this set for equality. Returns true if the specified object is also a set, the two sets have the same size, and every member of the specified set is contained in this set (or equivalently, every member of this set is contained in the specified set). This definition ensures that the equals method works properly across different implementations of the set interface.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements java.util.Set.hashCode.

Returns a hash code for this ReadOnlySetProperty object.

Returns:int

a hash code for this ReadOnlySetProperty object.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this ReadOnlySetProperty object.

Returns:String

a string representation of this ReadOnlySetProperty object.

Annotations
@Override
unbindContentback to summary
public void unbindContent(Object object)

Deletes a content binding between the javafx.collections.ObservableSet, that is wrapped in this ReadOnlySetProperty, and another Object.

Parameters
object:Object

the Object to which the binding should be removed

Exceptions
NullPointerException:
if object is null
IllegalArgumentException:
if object is the same set that this ReadOnlySetProperty points to
unbindContentBidirectionalback to summary
public void unbindContentBidirectional(Object object)

Deletes a bidirectional content binding between the javafx.collections.ObservableSet, that is wrapped in this ReadOnlySetProperty, and another Object.

Parameters
object:Object

the Object to which the bidirectional binding should be removed

Exceptions
NullPointerException:
if object is null
IllegalArgumentException:
if object is the same set that this ReadOnlySetProperty points to