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, size
Multiset.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, getName
addListener, addListener, addListener, appendValueToString, bind, emptyProperty, get, invalidated, isBound, removeListener, removeListener, removeListener, set, sizeProperty, unbind
bindBidirectional, setValue, unbindBidirectional
bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectional
add, 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, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll
public 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 ReadOnlyMultisetWrapper
public 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 ReadOnlyMultisetWrapper
initialValue
- 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()
MultisetPropertyBase
InvalidationListeners
,
ChangeListeners
, and
MultisetChangeListeners
.fireValueChangedEvent
in class MultisetPropertyBase<E>
protected void fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
MultisetPropertyBase
InvalidationListeners
,
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.