E - The element type of the wrapped ObservableMultiset.public class ReadOnlyMultisetWrapper<E> extends SimpleMultisetProperty<E>
ReadOnlyMultisetWrapper is a writable Property wrapping an
ObservableMultiset, which provides an additional read-only
Property (based on a concrete, non-exposed implementation of
ReadOnlyMultisetProperty), whose value is synchronized with the value
of this ReadOnlyMapWrapper.
This class provides identical functionality for Multiset as
ReadOnlyMapWrapper for Map, ReadOnlySetWrapper for
Set, or ReadOnlyListWrapper for List.
empty, sizeMultiset.Entry<E>| Constructor and Description |
|---|
ReadOnlyMultisetWrapper()
Constructs a new unnamed
ReadOnlyMultisetWrapper. |
ReadOnlyMultisetWrapper(java.lang.Object bean,
java.lang.String name)
Constructs a new
ReadOnlyMultisetWrapper for the given bean and
with the given name. |
ReadOnlyMultisetWrapper(java.lang.Object bean,
java.lang.String name,
ObservableMultiset<E> initialValue)
Constructs a new
ReadOnlyMultisetWrapper for the given bean and
with the given name and initial value. |
ReadOnlyMultisetWrapper(ObservableMultiset<E> initialValue)
Constructs a new unnamed
ReadOnlyMultisetWrapper with the given
initial value. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireValueChangedEvent()
Fires notifications to all attached
InvalidationListeners,
ChangeListeners, and
MultisetChangeListeners. |
protected void |
fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
Fires notifications to all attached
InvalidationListeners,
ChangeListeners, and
MultisetChangeListeners. |
ReadOnlyMultisetProperty<E> |
getReadOnlyProperty()
Returns the read-only
Property, whose value is synchronized with
this ReadOnlyMultisetWrapper. |
getBean, getNameaddListener, addListener, addListener, appendValueToString, bind, emptyProperty, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, unbindbindBidirectional, setValue, unbindBidirectionalbindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectionaladd, add, addAll, asString, clear, contains, containsAll, count, elementSet, entrySet, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, multisetExpression, remove, remove, removeAll, replaceAll, retainAll, setCount, setCount, size, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitreplaceAllpublic ReadOnlyMultisetWrapper()
ReadOnlyMultisetWrapper.public ReadOnlyMultisetWrapper(java.lang.Object bean,
java.lang.String name)
ReadOnlyMultisetWrapper for the given bean and
with the given name.bean - The bean the to be created ReadOnlyMultisetWrapper is
to be related to.name - The name of the to be created ReadOnlyMultisetWrapperpublic ReadOnlyMultisetWrapper(java.lang.Object bean,
java.lang.String name,
ObservableMultiset<E> initialValue)
ReadOnlyMultisetWrapper for the given bean and
with the given name and initial value.bean - The bean the to be created ReadOnlyMultisetWrapper is
to be related to.name - The name of the to be created ReadOnlyMultisetWrapperinitialValue - The initial value for the to be created
ReadOnlyMultisetWrapper.public ReadOnlyMultisetWrapper(ObservableMultiset<E> initialValue)
ReadOnlyMultisetWrapper with the given
initial value.initialValue - The initial value for the to be created
ReadOnlyMultisetWrapper.protected void fireValueChangedEvent()
MultisetPropertyBaseInvalidationListeners,
ChangeListeners, and
MultisetChangeListeners.fireValueChangedEvent in class MultisetPropertyBase<E>protected void fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
MultisetPropertyBaseInvalidationListeners,
ChangeListeners, and
MultisetChangeListeners.fireValueChangedEvent in class MultisetPropertyBase<E>change - the change that needs to be propagatedpublic ReadOnlyMultisetProperty<E> getReadOnlyProperty()
Property, whose value is synchronized with
this ReadOnlyMultisetWrapper.ReadOnlyMultisetProperty that is synchronized with
this ReadOnlyMultisetWrapper.Copyright (c) 2014 itemis AG and others. All rights reserved.