E
- the type of the Set
elementspublic abstract class ReadOnlySetProperty<E> extends SetExpression<E> implements ReadOnlyProperty<ObservableSet<E>>
ObservableSet
.ObservableSet
,
ObservableSetValue
,
SetExpression
,
ReadOnlyProperty
empty, size
Constructor and Description |
---|
ReadOnlySetProperty()
The constructor of
ReadOnlySetProperty . |
Modifier and Type | Method and Description |
---|---|
void |
bindContent(ObservableSet<E> set)
Creates a content binding between the
ObservableSet , that is
wrapped in this ReadOnlySetProperty , and another ObservableSet . |
void |
bindContentBidirectional(ObservableSet<E> set)
Creates a bidirectional content binding of the
ObservableSet , that is
wrapped in this ReadOnlySetProperty , and another ObservableSet . |
boolean |
equals(Object obj) |
int |
hashCode()
Returns a hash code for this
ReadOnlySetProperty object. |
String |
toString()
Returns a string representation of this
ReadOnlySetProperty object. |
void |
unbindContent(Object object)
Deletes a content binding between the
ObservableSet , that is
wrapped in this ReadOnlySetProperty , and another Object . |
void |
unbindContentBidirectional(Object object)
Deletes a bidirectional content binding between the
ObservableSet , that is
wrapped in this ReadOnlySetProperty , and another Object . |
add, addAll, asString, clear, contains, containsAll, emptyProperty, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, remove, removeAll, retainAll, setExpression, size, sizeProperty, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBean, getName
addListener, getValue, removeListener
addListener, removeListener
get
addListener, removeListener
spliterator
parallelStream, removeIf, stream
public ReadOnlySetProperty()
ReadOnlySetProperty
.public void bindContentBidirectional(ObservableSet<E> set)
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 toNullPointerException
- if set
is null
IllegalArgumentException
- if set
is the same set that this ReadOnlySetProperty
points topublic void unbindContentBidirectional(Object object)
ObservableSet
, that is
wrapped in this ReadOnlySetProperty
, and another Object
.object
- the Object
to which the bidirectional binding should be removedNullPointerException
- if object
is null
IllegalArgumentException
- if object
is the same set that this ReadOnlySetProperty
points topublic void bindContent(ObservableSet<E> set)
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 toNullPointerException
- if set
is null
IllegalArgumentException
- if set
is the same set that this ReadOnlySetProperty
points topublic void unbindContent(Object object)
ObservableSet
, that is
wrapped in this ReadOnlySetProperty
, and another Object
.object
- the Object
to which the binding should be removedNullPointerException
- if object
is null
IllegalArgumentException
- if object
is the same set that this ReadOnlySetProperty
points topublic boolean equals(Object obj)
public int hashCode()
ReadOnlySetProperty
object.Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.