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-onlyPropertywrapping anObservableMultiset.This class provides identical functionality for
MultisetasReadOnlyMapPropertyBaseforMap,ReadOnlySetPropertyBaseforSet, orReadOnlyListPropertyBaseforList.
-
-
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 voidaddListener(javafx.beans.InvalidationListener listener)voidaddListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)voidaddListener(MultisetChangeListener<? super E> listener)Adds aMultisetChangeListenerto thisObservableMultiset.protected voidfireValueChangedEvent()Fires notifications to all attachedInvalidationListeners,ChangeListeners, andMultisetChangeListeners.protected voidfireValueChangedEvent(MultisetChangeListener.Change<? extends E> change)Fires notifications to all attachedInvalidationListeners,ChangeListeners, andMultisetChangeListeners.voidremoveListener(javafx.beans.InvalidationListener listener)voidremoveListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener)voidremoveListener(MultisetChangeListener<? super E> listener)Removes aMultisetChangeListenerfrom 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:ObservableMultisetAdds aMultisetChangeListenerto thisObservableMultiset. If the same listener is registered more than once, it will be notified more than once.- Parameters:
listener- TheMultisetChangeListenerto add.
-
removeListener
public void removeListener(MultisetChangeListener<? super E> listener)
Description copied from interface:ObservableMultisetRemoves aMultisetChangeListenerfrom 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- TheMultisetChangeListenerto 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
-
-