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>
public abstract class ReadOnlySetMultimapPropertyBase<K,V> extends ReadOnlySetMultimapProperty<K,V>
Abstract base class for implementing a read-onlyPropertywrapping anObservableSetMultimap.This class provides identical functionality for
SetMultimapasReadOnlyMapPropertyBaseforMap,ReadOnlySetPropertyBaseforSet, orReadOnlyListPropertyBaseforList.
-
-
Constructor Summary
Constructors Constructor Description ReadOnlySetMultimapPropertyBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(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 voidfireValueChangedEvent()Fires 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, unbindContentBidirectional
-
Methods 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, valuesAt
-
-
-
-
Method Detail
-
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
public void addListener(SetMultimapChangeListener<? super K,? super V> listener)
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
public void removeListener(SetMultimapChangeListener<? super K,? super V> listener)
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
-
-