Class ReadOnlySetMultimapPropertyBase<K,V>
java.lang.Object
org.eclipse.gef.common.beans.binding.SetMultimapExpression<K,V>
org.eclipse.gef.common.beans.property.ReadOnlySetMultimapProperty<K,V>
org.eclipse.gef.common.beans.property.ReadOnlySetMultimapPropertyBase<K,V>
- Type Parameters:
K- The key type of theObservableSetMultimap.V- The value type of theObservableSetMultimap.
- All Implemented Interfaces:
Multimap<K,,V> SetMultimap<K,,V> javafx.beans.Observable,javafx.beans.property.ReadOnlyProperty<ObservableSetMultimap<K,,V>> javafx.beans.value.ObservableObjectValue<ObservableSetMultimap<K,,V>> javafx.beans.value.ObservableValue<ObservableSetMultimap<K,,V>> ObservableSetMultimapValue<K,,V> ObservableSetMultimap<K,V>
Abstract base class for implementing a read-only
Property wrapping an
ObservableSetMultimap.
This class provides identical functionality for SetMultimap as
ReadOnlyMapPropertyBase for Map,
ReadOnlySetPropertyBase for Set, or
ReadOnlyListPropertyBase for List.
-
Property Summary
Properties inherited from class org.eclipse.gef.common.beans.binding.SetMultimapExpression
empty, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(javafx.beans.InvalidationListener listener) voidaddListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) voidaddListener(SetMultimapChangeListener<? super K, ? super V> listener) Adds aSetMultimapChangeListenerto thisObservableSetMultimap.protected voidFires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.protected voidfireValueChangedEvent(SetMultimapChangeListener.Change<? extends K, ? extends V> change) Fires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.voidremoveListener(javafx.beans.InvalidationListener listener) voidremoveListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) voidremoveListener(SetMultimapChangeListener<? super K, ? super V> listener) Removes aSetMultimapChangeListenerfrom thisObservableSetMultimap.Methods inherited from class org.eclipse.gef.common.beans.property.ReadOnlySetMultimapProperty
appendValueToString, bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectionalMethods inherited from class org.eclipse.gef.common.beans.binding.SetMultimapExpression
asMap, asString, clear, containsEntry, containsKey, containsValue, emptyProperty, entries, get, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, keys, keySet, put, putAll, putAll, remove, removeAll, replaceAll, replaceValues, setMultimapExpression, size, sizeProperty, values, valuesAt, valuesAtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
ReadOnlySetMultimapPropertyBase
public ReadOnlySetMultimapPropertyBase()
-
-
Method Details
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) -
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super ObservableSetMultimap<K, V>> listener) -
addListener
public void addListener(javafx.beans.InvalidationListener listener) -
removeListener
public void removeListener(javafx.beans.InvalidationListener listener) -
addListener
Description copied from interface:ObservableSetMultimapAdds aSetMultimapChangeListenerto thisObservableSetMultimap. If the same listener is registered more than once, it will be notified more than once.- Parameters:
listener- TheSetMultimapChangeListenerto add.
-
removeListener
Description copied from interface:ObservableSetMultimapRemoves aSetMultimapChangeListenerfrom thisObservableSetMultimap. Will do nothing if the listener was not attached to thisObservableSetMultimap. If it was added more than once, then only the first occurrence will be removed.- Parameters:
listener- TheSetMultimapChangeListenerto remove.
-
fireValueChangedEvent
protected void fireValueChangedEvent()Fires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners. -
fireValueChangedEvent
protected void fireValueChangedEvent(SetMultimapChangeListener.Change<? extends K, ? extends V> change) Fires notifications to all attachedInvalidationListeners,ChangeListeners, andSetMultimapChangeListeners.- Parameters:
change- the change that needs to be propagated
-