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>,Iterable<E>,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>
Abstract base class for implementing a read-only
Property wrapping an
ObservableMultiset.
This class provides identical functionality for Multiset as
ReadOnlyMapPropertyBase for Map,
ReadOnlySetPropertyBase for Set, or
ReadOnlyListPropertyBase for List.
-
Property Summary
Properties inherited from class org.eclipse.gef.common.beans.binding.MultisetExpression
empty, size -
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.collect.Multiset
Multiset.Entry<E extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(javafx.beans.InvalidationListener listener) voidaddListener(javafx.beans.value.ChangeListener<? super ObservableMultiset<E>> listener) voidaddListener(MultisetChangeListener<? super E> listener) Adds aMultisetChangeListenerto thisObservableMultiset.protected voidFires 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, unbindContentBidirectionalMethods 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, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface com.google.common.collect.Multiset
forEach, forEachEntry, spliteratorMethods inherited from interface javafx.beans.value.ObservableObjectValue
getMethods inherited from interface javafx.beans.value.ObservableValue
getValueMethods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Constructor Details
-
ReadOnlyMultisetPropertyBase
public ReadOnlyMultisetPropertyBase()
-
-
Method Details
-
addListener
-
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
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
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
Fires notifications to all attachedInvalidationListeners,ChangeListeners, andMultisetChangeListeners.- Parameters:
change- the change that needs to be propagated
-