E
- The element type of the wrapped ObservableSet
.public class ReadOnlySetWrapperEx<E>
extends javafx.beans.property.ReadOnlySetWrapper<E>
ReadOnlySetWrapper
to fix the following JavaFX
issues:
bindBidirectional(Property)
and
unbindBidirectional(Property)
, which relied on the wrong
implementation.Constructor and Description |
---|
ReadOnlySetWrapperEx()
Creates a new unnamed
ReadOnlySetWrapperEx . |
ReadOnlySetWrapperEx(java.lang.Object bean,
java.lang.String name)
Creates a new named
ReadOnlySetWrapperEx related to the given
bean. |
ReadOnlySetWrapperEx(java.lang.Object bean,
java.lang.String name,
javafx.collections.ObservableSet<E> initialValue)
Creates a new named
ReadOnlySetWrapperEx , related to the given
bean and provided with the initial value. |
ReadOnlySetWrapperEx(javafx.collections.ObservableSet<E> initialValue)
Creates a new unnamed
ReadOnlySetWrapperEx with the given initial
value. |
Modifier and Type | Method and Description |
---|---|
void |
addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener) |
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(javafx.collections.SetChangeListener<? super E> listener) |
void |
bindBidirectional(javafx.beans.property.Property<javafx.collections.ObservableSet<E>> other) |
boolean |
equals(java.lang.Object other) |
protected void |
fireValueChangedEvent() |
protected void |
fireValueChangedEvent(javafx.collections.SetChangeListener.Change<? extends E> change) |
int |
hashCode() |
void |
removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
removeListener(javafx.collections.SetChangeListener<? super E> listener) |
void |
unbindBidirectional(javafx.beans.property.Property<javafx.collections.ObservableSet<E>> other) |
bind, emptyProperty, get, invalidated, isBound, set, sizeProperty, toString, unbind
bindContent, bindContentBidirectional, unbindContent, unbindContentBidirectional
add, addAll, asString, clear, contains, containsAll, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, remove, removeAll, retainAll, setExpression, size, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public ReadOnlySetWrapperEx()
ReadOnlySetWrapperEx
.public ReadOnlySetWrapperEx(java.lang.Object bean, java.lang.String name)
ReadOnlySetWrapperEx
related to the given
bean.bean
- The bean to relate the to be created
ReadOnlySetWrapperEx
to.name
- The name for the to be created ReadOnlySetWrapperEx
.public ReadOnlySetWrapperEx(java.lang.Object bean, java.lang.String name, javafx.collections.ObservableSet<E> initialValue)
ReadOnlySetWrapperEx
, related to the given
bean and provided with the initial value.bean
- The bean to relate the to be created
ReadOnlySetWrapperEx
to.name
- The name for the to be created ReadOnlySetWrapperEx
.initialValue
- The initial value of the to be created
ReadOnlySetWrapperEx
.public ReadOnlySetWrapperEx(javafx.collections.ObservableSet<E> initialValue)
ReadOnlySetWrapperEx
with the given initial
value.initialValue
- The initial value of the to be created
ReadOnlySetWrapperEx
.public void addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
public void addListener(javafx.beans.InvalidationListener listener)
addListener
in interface javafx.beans.Observable
addListener
in class javafx.beans.property.ReadOnlySetWrapper<E>
public void addListener(javafx.collections.SetChangeListener<? super E> listener)
public void bindBidirectional(javafx.beans.property.Property<javafx.collections.ObservableSet<E>> other)
public boolean equals(java.lang.Object other)
protected void fireValueChangedEvent()
fireValueChangedEvent
in class javafx.beans.property.ReadOnlySetWrapper<E>
protected void fireValueChangedEvent(javafx.collections.SetChangeListener.Change<? extends E> change)
fireValueChangedEvent
in class javafx.beans.property.ReadOnlySetWrapper<E>
public int hashCode()
public void removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
public void removeListener(javafx.beans.InvalidationListener listener)
removeListener
in interface javafx.beans.Observable
removeListener
in class javafx.beans.property.ReadOnlySetWrapper<E>
public void removeListener(javafx.collections.SetChangeListener<? super E> listener)
public void unbindBidirectional(javafx.beans.property.Property<javafx.collections.ObservableSet<E>> other)
Copyright (c) 2014 itemis AG and others. All rights reserved.