E
- The element type of the wrapped ObservableSet
.public class ReadOnlySetWrapperEx<E> extends ReadOnlySetWrapper<E>
ReadOnlySetWrapper
to fix the following JavaFX
issues:
empty, size
Constructor and Description |
---|
ReadOnlySetWrapperEx()
Creates a new unnamed
ReadOnlySetWrapperEx . |
ReadOnlySetWrapperEx(Object bean,
String name)
Creates a new named
ReadOnlySetWrapperEx related to the given
bean. |
ReadOnlySetWrapperEx(Object bean,
String name,
ObservableSet<E> initialValue)
Creates a new named
ReadOnlySetWrapperEx , related to the given
bean and provided with the initial value. |
ReadOnlySetWrapperEx(ObservableSet<E> initialValue)
Creates a new unnamed
ReadOnlySetWrapperEx with the given initial
value. |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ChangeListener<? super ObservableSet<E>> listener) |
void |
addListener(InvalidationListener listener) |
void |
addListener(SetChangeListener<? super E> listener) |
protected void |
fireValueChangedEvent() |
protected void |
fireValueChangedEvent(SetChangeListener.Change<? extends E> change) |
ReadOnlySetProperty<E> |
getReadOnlyProperty() |
int |
hashCode() |
void |
removeListener(ChangeListener<? super ObservableSet<E>> listener) |
void |
removeListener(InvalidationListener listener) |
void |
removeListener(SetChangeListener<? super E> listener) |
getBean, getName
bind, emptyProperty, get, invalidated, isBound, set, sizeProperty, toString, unbind
bindBidirectional, setValue, unbindBidirectional
bindContent, bindContentBidirectional, equals, 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
getValue
getValue
add, addAll, clear, contains, containsAll, equals, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
public ReadOnlySetWrapperEx()
ReadOnlySetWrapperEx
.public ReadOnlySetWrapperEx(Object bean, 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(Object bean, String name, 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(ObservableSet<E> initialValue)
ReadOnlySetWrapperEx
with the given initial
value.initialValue
- The initial value of the to be created
ReadOnlySetWrapperEx
.public void addListener(ChangeListener<? super ObservableSet<E>> listener)
addListener
in interface ObservableValue<ObservableSet<E>>
addListener
in class SetPropertyBase<E>
public void addListener(InvalidationListener listener)
addListener
in interface Observable
addListener
in class SetPropertyBase<E>
public void addListener(SetChangeListener<? super E> listener)
addListener
in interface ObservableSet<E>
addListener
in class SetPropertyBase<E>
protected void fireValueChangedEvent()
fireValueChangedEvent
in class ReadOnlySetWrapper<E>
protected void fireValueChangedEvent(SetChangeListener.Change<? extends E> change)
fireValueChangedEvent
in class ReadOnlySetWrapper<E>
public ReadOnlySetProperty<E> getReadOnlyProperty()
getReadOnlyProperty
in class ReadOnlySetWrapper<E>
public int hashCode()
hashCode
in interface Collection<E>
hashCode
in interface Set<E>
hashCode
in class ReadOnlySetProperty<E>
public void removeListener(ChangeListener<? super ObservableSet<E>> listener)
removeListener
in interface ObservableValue<ObservableSet<E>>
removeListener
in class SetPropertyBase<E>
public void removeListener(InvalidationListener listener)
removeListener
in interface Observable
removeListener
in class SetPropertyBase<E>
public void removeListener(SetChangeListener<? super E> listener)
removeListener
in interface ObservableSet<E>
removeListener
in class SetPropertyBase<E>
Copyright (c) 2014 itemis AG and others. All rights reserved.