Class ReadOnlyMultisetPropertyBase<E>
- java.lang.Object
-
- org.eclipse.gef.common.beans.binding.MultisetExpression<E>
-
- org.eclipse.gef.common.beans.property.ReadOnlyMultisetProperty<E>
-
- org.eclipse.gef.common.beans.property.ReadOnlyMultisetPropertyBase<E>
-
- Type Parameters:
E
- The element type of theObservableMultiset
.
- All Implemented Interfaces:
Multiset<E>
,java.lang.Iterable<E>
,java.util.Collection<E>
,javafx.beans.Observable
,javafx.beans.property.ReadOnlyProperty<ObservableMultiset<E>>
,javafx.beans.value.ObservableObjectValue<ObservableMultiset<E>>
,javafx.beans.value.ObservableValue<ObservableMultiset<E>>
,ObservableMultisetValue<E>
,ObservableMultiset<E>
public abstract class ReadOnlyMultisetPropertyBase<E> extends ReadOnlyMultisetProperty<E>
Abstract base class for implementing a read-onlyProperty
wrapping anObservableMultiset
.This class provides identical functionality for
Multiset
asReadOnlyMapPropertyBase
forMap
,ReadOnlySetPropertyBase
forSet
, orReadOnlyListPropertyBase
forList
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.common.collect.Multiset
Multiset.Entry<E extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyMultisetPropertyBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(javafx.beans.InvalidationListener listener)
void
addListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
void
addListener(MultisetChangeListener<? super E> listener)
Adds aMultisetChangeListener
to thisObservableMultiset
.protected void
fireValueChangedEvent()
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMultisetChangeListeners
.protected void
fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMultisetChangeListeners
.void
removeListener(javafx.beans.InvalidationListener listener)
void
removeListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
void
removeListener(MultisetChangeListener<? super E> listener)
Removes aMultisetChangeListener
from thisObservableMultiset
.-
Methods inherited from class org.eclipse.gef.common.beans.property.ReadOnlyMultisetProperty
appendValueToString, bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectional
-
Methods inherited from class org.eclipse.gef.common.beans.binding.MultisetExpression
add, add, addAll, asString, clear, contains, containsAll, count, elementSet, emptyProperty, entrySet, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, multisetExpression, remove, remove, removeAll, replaceAll, retainAll, setCount, setCount, size, sizeProperty, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.common.collect.Multiset
forEach, forEachEntry, spliterator
-
-
-
-
Method Detail
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
-
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)
-
addListener
public void addListener(javafx.beans.InvalidationListener listener)
-
removeListener
public void removeListener(javafx.beans.InvalidationListener listener)
-
addListener
public void addListener(MultisetChangeListener<? super E> listener)
Description copied from interface:ObservableMultiset
Adds aMultisetChangeListener
to thisObservableMultiset
. If the same listener is registered more than once, it will be notified more than once.- Parameters:
listener
- TheMultisetChangeListener
to add.
-
removeListener
public void removeListener(MultisetChangeListener<? super E> listener)
Description copied from interface:ObservableMultiset
Removes aMultisetChangeListener
from thisObservableMultiset
. Will do nothing if the listener was not attached to thisObservableMultiset
. If it was added more than once, then only the first occurrence will be removed.- Parameters:
listener
- TheMultisetChangeListener
to remove.
-
fireValueChangedEvent
protected void fireValueChangedEvent()
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMultisetChangeListeners
.
-
fireValueChangedEvent
protected void fireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)
Fires notifications to all attachedInvalidationListeners
,ChangeListeners
, andMultisetChangeListeners
.- Parameters:
change
- the change that needs to be propagated
-
-